2019-07-18 15:43:24 -04:00
|
|
|
require:
|
|
|
|
- rubocop-performance
|
|
|
|
- rubocop-rails
|
2019-10-09 02:43:20 -04:00
|
|
|
- rubocop-rspec
|
2019-04-27 05:36:57 -04:00
|
|
|
|
2018-11-22 14:57:13 -05:00
|
|
|
AllCops:
|
2020-01-15 05:52:32 -05:00
|
|
|
TargetRubyVersion: 2.7
|
2018-11-22 14:57:13 -05:00
|
|
|
DisplayCopNames: true
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
- 'bin/**/*'
|
|
|
|
- 'db/schema.rb'
|
2018-11-30 02:26:46 -05:00
|
|
|
- 'lib/tasks/cucumber.rake'
|
2018-12-06 19:15:41 -05:00
|
|
|
- 'lib/templates/**/*'
|
2018-11-30 02:26:46 -05:00
|
|
|
- 'script/cucumber'
|
2018-11-22 14:57:13 -05:00
|
|
|
- 'vendor/**/*'
|
|
|
|
|
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: outdent
|
|
|
|
|
|
|
|
Layout/EmptyLinesAroundArguments:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-11-29 15:57:57 -05:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/*.rb'
|
|
|
|
|
2018-11-26 08:58:09 -05:00
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
2018-12-03 15:04:08 -05:00
|
|
|
- 'config/**/*.rb'
|
2019-07-22 09:52:23 -04:00
|
|
|
- 'db/migrate/*.rb'
|
2018-11-29 22:41:57 -05:00
|
|
|
- 'factories/**/*.rb'
|
2018-12-04 08:50:10 -05:00
|
|
|
- 'lib/capistrano/tasks/**/*.rake'
|
2018-11-28 09:05:58 -05:00
|
|
|
- 'spec/**/*.rb'
|
2018-11-26 08:58:09 -05:00
|
|
|
|
2019-07-22 00:22:50 -04:00
|
|
|
Metrics/ClassLength:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/*.rb'
|
|
|
|
|
2020-01-15 06:16:17 -05:00
|
|
|
Layout/LineLength:
|
2018-11-26 08:58:09 -05:00
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
- 'config/initializers/simple_form_bootstrap.rb'
|
|
|
|
|
2018-11-28 08:09:23 -05:00
|
|
|
Metrics/MethodLength:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/*.rb'
|
|
|
|
|
2019-08-17 21:19:45 -04:00
|
|
|
Naming/PredicateName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/application_record.rb'
|
|
|
|
|
2018-11-22 14:57:13 -05:00
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
|
2018-12-03 22:16:40 -05:00
|
|
|
Rails/BulkChangeTable:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-07-20 06:25:23 -04:00
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-11-29 19:17:26 -05:00
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
|
2020-01-03 18:56:46 -05:00
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-10-15 07:21:09 -04:00
|
|
|
Rails/UnknownEnv:
|
|
|
|
Environments:
|
|
|
|
- 'development'
|
|
|
|
- 'production'
|
|
|
|
- 'staging'
|
|
|
|
- 'test'
|
|
|
|
|
2019-10-09 03:04:34 -04:00
|
|
|
RSpec/ContextWording:
|
|
|
|
Prefixes:
|
|
|
|
- 'after'
|
|
|
|
- 'for'
|
|
|
|
- 'when'
|
|
|
|
- 'with'
|
|
|
|
- 'without'
|
|
|
|
|
|
|
|
RSpec/DescribeClass:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/requests/**/*_spec.rb'
|
|
|
|
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
Max: 8
|
|
|
|
|
2020-01-15 05:08:44 -05:00
|
|
|
RSpec/ExpectInHook:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-10-09 03:04:34 -04:00
|
|
|
RSpec/ImplicitSubject:
|
2019-05-03 03:52:01 -04:00
|
|
|
Enabled: false
|
|
|
|
|
2019-10-09 03:04:34 -04:00
|
|
|
RSpec/NamedSubject:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
Max: 4
|
|
|
|
|
|
|
|
RSpec/ScatteredSetup:
|
|
|
|
Enabled: false
|
2019-02-01 23:27:42 -05:00
|
|
|
|
2018-11-22 14:57:13 -05:00
|
|
|
Style/AndOr:
|
|
|
|
EnforcedStyle: conditionals
|
|
|
|
|
2018-11-29 16:28:20 -05:00
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Exclude:
|
2018-12-11 19:08:00 -05:00
|
|
|
- 'app/policies/**/*.rb'
|
2018-11-29 16:28:20 -05:00
|
|
|
- 'app/controllers/**/*.rb'
|
|
|
|
|
2018-11-22 14:57:13 -05:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-12-08 19:28:25 -05:00
|
|
|
Style/GlobalVars:
|
|
|
|
Exclude:
|
|
|
|
- 'features/support/env.rb'
|
|
|
|
- 'spec/spec_helper.rb'
|
|
|
|
|
2018-12-05 20:56:52 -05:00
|
|
|
Style/RescueModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*.rb'
|
|
|
|
|
2019-07-25 20:46:35 -04:00
|
|
|
Style/RescueStandardError:
|
|
|
|
EnforcedStyle: implicit
|
|
|
|
|
2019-02-08 02:34:16 -05:00
|
|
|
Style/Semicolon:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*.rb'
|
|
|
|
|
2018-11-22 14:57:13 -05:00
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|