.rubocop.yml in warclight-0.8.3 vs .rubocop.yml in warclight-0.9.0
- old
+ new
@@ -1,23 +1,32 @@
-require: rubocop-performance
-require: rubocop-rspec
+require:
+ - rubocop-rails
+ - rubocop-rspec
AllCops:
Exclude:
- '.internal_test_app/**/*'
- '.internal_test_gem/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'lib/generators/warclight/templates/**/*'
- 'vendor/**/*'
- TargetRubyVersion: 2.4
+ TargetRubyVersion: 2.6
DisplayCopNames: true
Rails:
Enabled: true
-Metrics/LineLength:
+Rails/OutputSafety:
+ Exclude:
+ - 'app/models/concerns/warclight/solr_document.rb'
+
+Rails/RakeEnvironment:
+ Exclude:
+ - 'tasks/warclight.rake'
+
+Layout/LineLength:
Max: 120
Exclude:
- 'Gemfile'
- 'spec/models/concerns/warclight/solr_document_spec.rb'
@@ -39,17 +48,15 @@
Metrics/AbcSize:
Exclude:
- 'app/models/concerns/warclight/solr_document.rb' #Come back to this later
-Performance/RegexpMatch:
- Enabled: false
+Lint/RaiseException:
+ Enabled: true
-Rails/OutputSafety:
- Exclude:
- - 'app/controllers/concerns/warclight/field_config_helpers.rb' # html_safe needs to be called to mimic BL JOIN behavior
- - 'app/models/concerns/warclight/solr_document.rb'
+Lint/StructNewOverride:
+ Enabled: true
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
@@ -59,30 +66,44 @@
Max: 4
RSpec/DescribeClass:
Enabled: false
-Rails/TimeZone:
+Style/DateTime:
Exclude:
- 'app/models/concerns/warclight/solr_document.rb' #Come back to this later
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'lib/warclight.rb'
Style/ExpandPathArguments:
Exclude:
- - warclight.gemspec
- - lib/generators/warclight/install_generator.rb
- - lib/generators/warclight/update_generator.rb
+ - 'warclight.gemspec'
+ - 'lib/generators/warclight/install_generator.rb'
+ - 'lib/generators/warclight/update_generator.rb'
+Style/HashEachMethods:
+ Enabled: true
+
+Style/HashTransformKeys:
+ Enabled: true
+
+Style/HashTransformValues:
+ Enabled: true
+
+Style/StringConcatenation:
+ Exclude:
+ - 'app/helpers/warclight_helper.rb'
+ - 'app/models/concerns/warclight/solr_document.rb'
+
Bundler/DuplicatedGem:
Enabled: false
Lint/UselessAssignment:
Exclude:
- 'app/models/concerns/warclight/solr_document.rb' #Come back to this later
Style/RescueStandardError:
Exclude:
- - app/helpers/warclight_helper.rb
+ - 'app/helpers/warclight_helper.rb'