.rubocop.yml in narou-3.4.8 vs .rubocop.yml in narou-3.5.0
- old
+ new
@@ -6,11 +6,11 @@
- "小説データ/**/*"
- "trash/**/*"
- "narou.gemspec"
- "spec/**/*"
DisplayCopNames: true
- TargetRubyVersion: 2.3
+ TargetRubyVersion: 2.5
Metrics/ClassLength:
CountComments: false
Max: 300
@@ -28,11 +28,11 @@
Max: 3
Metrics/CyclomaticComplexity:
Max: 8
-Metrics/LineLength:
+Layout/LineLength:
Max: 140
AllowURI: true
URISchemes:
- http
- https
@@ -104,21 +104,21 @@
Style/NumericLiterals:
MinDigits: 7
# has_ から始まるメソッドは許可する
Naming/PredicateName:
- NamePrefixBlacklist:
+ ForbiddenPrefixes:
- "is_"
- "have_"
NamePrefix:
- "is_"
- "have_"
Style/GlobalVars:
Enabled: false
-Layout/IndentFirstHashElement:
+Layout/FirstHashElementIndentation:
Enabled: false
Layout/LeadingCommentSpace:
Enabled: true
@@ -135,11 +135,11 @@
Enabled: true
Style/Not:
Enabled: true
-PercentLiteralDelimiters:
+Style/PercentLiteralDelimiters:
PreferredDelimiters:
"%": "!!"
"%i": "()"
"%q": "!!"
"%Q": "!!"
@@ -156,11 +156,11 @@
AllowMultipleReturnValues: true
Style/RedundantSelf:
Enabled: false
-SignalException:
+Style/SignalException:
EnforcedStyle: only_raise
Layout/SpaceAfterComma:
Enabled: true
@@ -180,11 +180,11 @@
Enabled: true
Layout/Tab:
Enabled: true
-Layout/TrailingBlankLines:
+Layout/TrailingEmptyLines:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
@@ -195,11 +195,11 @@
Enabled: true
Style/UnlessElse:
Enabled: true
-VariableName:
+Naming/VariableName:
EnforcedStyle: snake_case
Style/WordArray:
MinSize: 3
@@ -219,16 +219,16 @@
Enabled: true
Layout/MultilineOperationIndentation:
Enabled: false
-Layout/IndentHeredoc:
+Layout/HeredocIndentation:
Enabled: true
Style/NumericPredicate:
Enabled: false
-Lint/HandleExceptions:
+Lint/SuppressedException:
Enabled: false
Lint/RescueException:
Enabled: false