.rubocop.yml in reek-2.1.0 vs .rubocop.yml in reek-2.2.0
- old
+ new
@@ -2,22 +2,19 @@
Exclude:
- 'spec/samples/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
-# FIXME: Lower the ABC size by fixing the biggest offenders
-Metrics/AbcSize:
- Max: 25
-
# FIXME: Make the class shorter
Metrics/ClassLength:
Exclude:
- lib/reek/core/tree_walker.rb
+ - lib/reek/cli/options.rb
# FIXME: Lower the method length by fixing the biggest offenders
Metrics/MethodLength:
- Max: 46
+ Max: 15
# Be a little more lenient with line length
Metrics/LineLength:
Max: 100
@@ -31,36 +28,20 @@
# Always use raise to signal exceptions
Style/SignalException:
EnforcedStyle: only_raise
-# Allow multiple Hash parameters to look similar
-Style/BracesAroundHashParameters:
- EnforcedStyle: context_dependent
-
# Place . on the previous line
Style/DotPosition:
EnforcedStyle: trailing
# Require empty lines between defs, except for one-line defs
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
-# Enforce GaurdClause if there are 2 or more lines in the body
-Style/GuardClause:
- MinBodyLength: 2
-
-# Allow s()
-Style/MethodCallParentheses:
- Enabled: false
-
# Allow multiline block chains
Style/MultilineBlockChain:
Enabled: false
# Allow Perl-style references to regex matches
Style/PerlBackrefs:
Enabled: false
-
-# Only register TrivialAccessors offenses when the name matches
-Style/TrivialAccessors:
- ExactNameMatch: true