.rubocop.yml
require: rubocop-rspec
AllCops:
DisplayCopNames: true
Exclude:
- 'vendor/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'app/assets/**/*'
- 'config/**/*'
- 'doc/**/*'
- 'spec/**/*'
- 'test/**/*'
- 'app/helpers/**/*'
- 'app/controllers/catalog_controller.rb'
- 'app/controllers/dams_resource_controller.rb'
- 'Gemfile'
Rails:
Enabled: true
Style/Encoding:
Enabled: true
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'app/**/*'
Style/ConditionalAssignment:
Exclude:
- 'app/helpers/*'
Style/Next:
Enabled: true
Metrics/AbcSize:
Max: 50
Metrics/LineLength:
Max: 150
Style/SafeNavigation:
Exclude:
- 'lib/dams/controller_helper.rb'
Metrics/CyclomaticComplexity:
Max: 8
Metrics/PerceivedComplexity:
Max: 8