.rubocop.yml in reek-4.8.2 vs .rubocop.yml in reek-5.0.0
- old
+ new
@@ -4,11 +4,11 @@
AllCops:
Exclude:
- 'samples/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- TargetRubyVersion: 2.1
+ TargetRubyVersion: 2.3
# Place . on the previous line
Layout/DotPosition:
EnforcedStyle: trailing
@@ -58,14 +58,26 @@
Metrics/ClassLength:
Exclude:
- lib/reek/context_builder.rb
- lib/reek/cli/options.rb
+Style/SafeNavigation:
+ Exclude:
+ - lib/reek/ast/node.rb
+ - lib/reek/ast/sexp_extensions/module.rb
+
# FIXME: Lower the method length by fixing the biggest offenders
Metrics/MethodLength:
Max: 15
+ Exclude:
+ - 'lib/reek/cli/options.rb'
+Metrics/AbcSize:
+ Exclude:
+ - 'lib/reek/cli/options.rb'
+ - 'lib/reek/configuration/configuration_converter.rb'
+
# Be rather lenient with line length
Metrics/LineLength:
Max: 120
# Keyword arguments make long parameter lists readable
@@ -98,12 +110,12 @@
# FIXME: Split up files to avoid offenses
RSpec/MultipleDescribes:
Exclude:
- 'spec/reek/ast/sexp_extensions_spec.rb'
- 'spec/reek/code_comment_spec.rb'
- - 'spec/reek/report/formatter/location_formatter_spec.rb'
- - 'spec/reek/report/formatter/progress_formatter_spec.rb'
+ - 'spec/reek/report/location_formatter_spec.rb'
+ - 'spec/reek/report/progress_formatter_spec.rb'
# FIXME: Update specs to avoid offenses
RSpec/MultipleExpectations:
Exclude:
- 'spec/reek/cli/application_spec.rb'
@@ -117,9 +129,11 @@
# FIXME: Update specs to avoid offenses
RSpec/NestedGroups:
Exclude:
- 'spec/reek/report/code_climate/code_climate_fingerprint_spec.rb'
- 'spec/reek/cli/application_spec.rb'
+ - 'spec/reek/configuration/schema_validator_spec.rb'
+ - 'spec/reek/configuration/configuration_file_finder_spec.rb'
# rubocop-rspec expects a CodeClimate namespace to go with the code_climate directory.
RSpec/FilePath:
Exclude:
- 'spec/reek/report/code_climate/code_climate_configuration_spec.rb'