2018-11-23 00:57:13 +05:00
|
|
|
AllCops:
|
2019-01-29 04:46:07 +05:00
|
|
|
TargetRubyVersion: 2.6
|
2018-11-23 00:57:13 +05:00
|
|
|
DisplayCopNames: true
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
- 'bin/**/*'
|
|
|
|
- 'db/schema.rb'
|
2018-11-30 12:26:46 +05:00
|
|
|
- 'lib/tasks/cucumber.rake'
|
2018-12-07 05:15:41 +05:00
|
|
|
- 'lib/templates/**/*'
|
2018-11-30 12:26:46 +05:00
|
|
|
- 'script/cucumber'
|
2018-11-23 00:57:13 +05:00
|
|
|
- 'vendor/**/*'
|
|
|
|
|
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: outdent
|
|
|
|
|
2018-11-26 18:58:09 +05:00
|
|
|
Layout/AlignHash:
|
|
|
|
EnforcedColonStyle: table
|
|
|
|
|
2018-11-23 00:57:13 +05:00
|
|
|
Layout/EmptyLinesAroundArguments:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-11-30 01:57:57 +05:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/*.rb'
|
|
|
|
|
2018-11-26 18:58:09 +05:00
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
2018-12-04 01:04:08 +05:00
|
|
|
- 'config/**/*.rb'
|
2018-11-30 08:41:57 +05:00
|
|
|
- 'factories/**/*.rb'
|
2018-12-04 18:50:10 +05:00
|
|
|
- 'lib/capistrano/tasks/**/*.rake'
|
2018-11-28 19:05:58 +05:00
|
|
|
- 'spec/**/*.rb'
|
2018-11-26 18:58:09 +05:00
|
|
|
|
|
|
|
Metrics/LineLength:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
- 'config/initializers/simple_form_bootstrap.rb'
|
|
|
|
|
2018-11-28 18:09:23 +05:00
|
|
|
Metrics/MethodLength:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/*.rb'
|
|
|
|
|
2018-11-23 00:57:13 +05:00
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
|
2018-12-04 08:16:40 +05:00
|
|
|
Rails/BulkChangeTable:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-12-06 06:22:39 +05:00
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/role.rb'
|
|
|
|
|
2018-11-30 05:17:26 +05:00
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
|
2019-02-02 09:27:42 +05:00
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Whitelist:
|
|
|
|
- update_all
|
|
|
|
|
2018-11-23 00:57:13 +05:00
|
|
|
Style/AndOr:
|
|
|
|
EnforcedStyle: conditionals
|
|
|
|
|
2018-11-30 02:28:20 +05:00
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Exclude:
|
2018-12-12 05:08:00 +05:00
|
|
|
- 'app/policies/**/*.rb'
|
2018-11-30 02:28:20 +05:00
|
|
|
- 'app/controllers/**/*.rb'
|
|
|
|
|
2018-11-23 00:57:13 +05:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-12-09 05:28:25 +05:00
|
|
|
Style/GlobalVars:
|
|
|
|
Exclude:
|
|
|
|
- 'features/support/env.rb'
|
|
|
|
- 'spec/spec_helper.rb'
|
|
|
|
|
2018-12-06 06:56:52 +05:00
|
|
|
Style/RescueModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*.rb'
|
|
|
|
|
2018-11-23 00:57:13 +05:00
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|