.rubocop.yml in usps_flags-0.5.0 vs .rubocop.yml in usps_flags-0.5.1
- old
+ new
@@ -1,12 +1,14 @@
require: rubocop-rspec
AllCops:
TargetRubyVersion: 2.5
Exclude:
+ - lib/output/*
- tmp/**/*
+ - vendor/**/*
-Layout/IndentHash:
+Layout/IndentFirstHashElement:
EnforcedStyle: consistent
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Layout/EmptyLinesAroundAccessModifier:
Enabled: true
@@ -22,26 +24,22 @@
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: no_space
+Layout/EndAlignment:
+ EnforcedStyleAlignWith: start_of_line
Lint/UnusedMethodArgument:
Enabled: true
Lint/UselessAssignment:
Enabled: true
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
Metrics/LineLength:
- Exclude:
- - 'spec/**/*.rb'
- Max: 100
-Metrics/LineLength:
- Include:
- - 'spec/**/*.rb'
Max: 120
Metrics/MethodLength:
Enabled: true
Metrics/ClassLength:
Enabled: true
@@ -51,15 +49,23 @@
Metrics/CyclomaticComplexity:
Enabled: true
Metrics/AbcSize:
Enabled: true
-Rails/InverseOf:
- Enabled: true
+Naming/UncommunicativeMethodParamName:
+ Enabled: false
+Naming/AccessorMethodName:
+ Enabled: false
RSpec/MessageSpies:
EnforcedStyle: receive
+RSpec/InstanceVariable:
+ Enabled: false
+RSpec/NestedGroups:
+ Enabled: false
+RSpec/ExampleLength:
+ Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
@@ -71,13 +77,18 @@
Enabled: true
Style/ClassCheck:
Enabled: true
Style/GuardClause:
Enabled: true
+Style/ClassAndModuleChildren:
+ EnforcedStyle: nested
+Style/GlobalVars:
+ Exclude:
+ - 'spec/**/*.rb'
+Style/ParallelAssignment:
+ Enabled: false
Security/Eval:
- Enabled: true
-Security/JSONLoad:
Enabled: true
Security/JSONLoad:
Enabled: true
Security/YAMLLoad:
Enabled: true