Skip to content

Commit ad75695

Browse files
committed
tweaks to RuboCop config
1 parent 3b34dc3 commit ad75695

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.rubocop.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ inherit_from: .rubocop_todo.yml
22

33
AllCops:
44
TargetRubyVersion: 2.3
5+
DisplayStyleGuide: true
56
Exclude:
67
- 'test/scanners/**/*'
78
- 'bench/example.ruby'

.rubocop_todo.yml

-23
Original file line numberDiff line numberDiff line change
@@ -530,29 +530,6 @@ Naming/VariableNumber:
530530
Exclude:
531531
- 'test/unit/tokens.rb'
532532

533-
# Offense count: 1
534-
Performance/Caller:
535-
Exclude:
536-
- 'lib/coderay/scanners/scanner.rb'
537-
538-
# Offense count: 1
539-
# Cop supports --auto-correct.
540-
Performance/Casecmp:
541-
Exclude:
542-
- 'rake_tasks/generator.rake'
543-
544-
# Offense count: 1
545-
# Cop supports --auto-correct.
546-
Performance/StringReplacement:
547-
Exclude:
548-
- 'lib/coderay/encoders/html.rb'
549-
550-
# Offense count: 3
551-
Performance/UnfreezeString:
552-
Exclude:
553-
- 'lib/coderay/encoders/encoder.rb'
554-
- 'lib/coderay/encoders/html.rb'
555-
556533
# Offense count: 1
557534
# Cop supports --auto-correct.
558535
# Configuration parameters: AutoCorrect.

0 commit comments

Comments
 (0)