AllCops: Include: - '**/Rakefile' - '**/config.ru' Exclude: - 'lib/**/*' - 'bin/**/*' - 'script/**/*' - '**/*.json.jbuilder' - 'vendor/bundle/**/*' - 'node_modules/**/*' - 'db/schema.rb' # auto-generated :( - 'Capfile' - 'config/routes.rb' - 'config/initializers/devise.rb' - 'test/**/*' - 'vendor/**/*' TargetRubyVersion: 2.4 Style/SymbolArray: Enabled: false Style/Documentation: Enabled: false Style/FileName: Exclude: - Gemfile Style/FrozenStringLiteralComment: EnforcedStyle: always Enabled: true Style/NumericPredicate: AutoCorrect: true EnforcedStyle: comparison Enabled: true Style/AsciiComments: Enabled: false Style/Lambda: EnforcedStyle: literal Style/TrivialAccessors: Enabled: false # Want to refactor some stuff? Remove these. Metrics/AbcSize: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/PerceivedComplexity: Enabled: false Metrics/MethodLength: Max: 100 Exclude: - 'db/migrate/*' Metrics/LineLength: Max: 150 Metrics/ClassLength: Enabled: false Metrics/BlockLength: Max: 30 ExcludedMethods: - scope - configure - draw - define - test - helpers - field