.rubocop.yml in gistory-0.2.1 vs .rubocop.yml in gistory-0.3.0
- old
+ new
@@ -1,7 +1,11 @@
require: rubocop-rspec
+AllCops:
+ TargetRubyVersion: 2.4
+ NewCops: enable
+
Metrics/AbcSize:
Max: 25
Exclude:
- 'spec/**/*_spec.rb'
@@ -10,13 +14,10 @@
- 'spec/**/*_spec.rb'
Metrics/MethodLength:
Max: 20
-Layout/EmptyLineAfterGuardClause:
- Enabled: false
-
Layout/LineLength:
Max: 120
Style/BlockDelimiters:
Exclude:
@@ -39,49 +40,5 @@
RSpec/MultipleExpectations:
Max: 15
RSpec/ExampleLength:
Max: 15
-
-# starting rubocop 0.80 newly added cops need to be explicitly enabled:
-
-Lint/DeprecatedOpenSSLConstant:
- Enabled: true
-
-Layout/EmptyLinesAroundAttributeAccessor:
- Enabled: true
-
-Lint/MixedRegexpCaptureTypes:
- Enabled: true
-
-Lint/RaiseException:
- Enabled: true
-
-Layout/SpaceAroundMethodCallOperator:
- Enabled: true
-
-Lint/StructNewOverride:
- Enabled: true
-
-Style/ExponentialNotation:
- Enabled: true
-
-Style/HashEachMethods:
- Enabled: true
-
-Style/HashTransformKeys:
- Enabled: true
-
-Style/HashTransformValues:
- Enabled: true
-
-Style/RedundantFetchBlock:
- Enabled: true
-
-Style/RedundantRegexpCharacterClass:
- Enabled: true
-
-Style/RedundantRegexpEscape:
- Enabled: true
-
-Style/SlicingWithRange:
- Enabled: true