.rubocop.yml
AllCops:
TargetRubyVersion: 2.4
DisplayCopNames: true
Include:
- '**/Rakefile'
- '**/config.ru'
- '**/application.rb'
- '**/*.rb'
Exclude:
# You could specify set of files or dirs while you want to be ignored by rubocop
- 'vendor/**/*'
- 'bin/*'
- 'db/schema.rb'
- 'Gemfile'
- 'Gemfile.lock'
- !ruby/regexp /old_and_unused\.rb$/
- 'config/add_vagrant_config.rb'
- 'puppet/**/*'
Layout/LineLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
- 'spec/factories.rb'
- 'spec/factories/**/*.rb'
- 'Guardfile'
- 'Vagrantfile'
Style/Documentation:
Enabled: false
Naming/PredicateName:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/FileName:
Exclude:
- 'Guardfile'
- 'Vagrantfile'
- 'Procfile'
- 'puppet/Puppetfile'
Lint/RedundantCopDisableDirective:
Enabled: false # Used to gradually fix the rubocop rspec cops while not enabling it in the build
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/SlicingWithRange:
Enabled: true