.rubocop.yml in hanny-0.1.0 vs .rubocop.yml in hanny-0.2.0
- old
+ new
@@ -1,14 +1,18 @@
+require:
+ - rubocop-performance
+ - rubocop-rspec
+
AllCops:
- TargetRubyVersion: 2.1
+ TargetRubyVersion: 2.5
DisplayCopNames: true
DisplayStyleGuide: true
+ NewCops: enable
+ Exclude:
+ - 'hanny.gemspec'
-Documentation:
- Enabled: false
-
-Metrics/LineLength:
+Layout/LineLength:
Max: 140
IgnoredPatterns: ['(\A|\s)#']
Metrics/ModuleLength:
Max: 200
@@ -24,16 +28,16 @@
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
-ParameterLists:
+Metrics/ParameterLists:
Max: 10
Security/MarshalLoad:
Enabled: false
-Naming/UncommunicativeMethodParamName:
+Naming/MethodParameterName:
Enabled: false
Style/FormatStringToken:
Enabled: false