main
  1require:
  2  - rubocop-rails
  3  - rubocop-rspec
  4# For a list of available cops see:
  5# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
  6AllCops:
  7  TargetRubyVersion:
  8    2.6
  9  Exclude:
 10    - 'bin/**/*'
 11    - 'config/initializers/*.rb'
 12    - 'config/routes.rb'
 13    - 'db/schema.rb'
 14    - 'db/seeds.rb'
 15    - 'node_modules/**/*'
 16    - 'pkg/**/*'
 17    - 'tmp/**/*'
 18    - 'vendor/**/*'
 19
 20Layout/ArgumentAlignment:
 21  EnforcedStyle: with_fixed_indentation
 22
 23Layout/FirstArrayElementIndentation:
 24  EnforcedStyle: consistent
 25
 26Metrics/AbcSize:
 27  Enabled: false
 28
 29Metrics/BlockLength:
 30  Exclude:
 31    - 'spec/**/*'
 32
 33Layout/LineLength:
 34  Exclude:
 35    - 'db/migrate/*'
 36    - 'spec/**/*'
 37
 38Metrics/MethodLength:
 39  Enabled: false
 40
 41Metrics/ParameterLists:
 42  Exclude:
 43    - 'spec/documentation.rb'
 44
 45Metrics/PerceivedComplexity:
 46  Enabled: false
 47
 48Naming/RescuedExceptionsVariableName:
 49  PreferredName: error
 50
 51Rails/CreateTableWithTimestamps:
 52  Exclude:
 53    - 'db/migrate/20180923222720_install_audited.rb'
 54
 55Rails/SkipsModelValidations:
 56  Enabled: false
 57
 58RSpec/DescribeClass:
 59  Enabled: false
 60
 61RSpec/ExampleLength:
 62  Exclude:
 63    - 'spec/system/**/*'
 64    - 'spec/documentation.rb'
 65
 66RSpec/LetSetup:
 67  Enabled: false
 68
 69RSpec/MultipleExpectations:
 70  Max: 2
 71
 72RSpec/NamedSubject:
 73  Enabled: false
 74
 75RSpec/NestedGroups:
 76  Max: 5
 77
 78Style/Documentation:
 79  Enabled: false
 80
 81Style/GlobalVars:
 82  Exclude:
 83    - 'spec/documentation.rb'
 84
 85Style/RaiseArgs:
 86  EnforcedStyle: compact
 87
 88Style/RegexpLiteral:
 89  Enabled: false
 90
 91Style/StringLiterals:
 92  Enabled: false
 93
 94Style/SymbolArray:
 95  Enabled: false
 96
 97Style/TrailingCommaInArrayLiteral:
 98  Enabled: false
 99
100Style/TrailingCommaInHashLiteral:
101  Enabled: false
102
103Style/TrailingCommaInArguments:
104  Enabled: false