adopt-a-hydrant/.rubocop.yml

62 lines
1.0 KiB
YAML
Raw Normal View History

2014-01-23 11:20:48 +00:00
AllCops:
2014-04-07 08:16:46 +00:00
Exclude:
2014-04-24 10:45:58 +00:00
- 'bin/*'
2014-03-28 15:00:40 +00:00
- 'db/schema.rb'
2014-08-15 00:26:32 +00:00
- 'db/seeds.rb'
2014-08-15 00:29:57 +00:00
- 'vendor/bundle/**/*'
2014-01-23 11:20:48 +00:00
2016-01-16 21:56:10 +00:00
Rails:
Enabled: true
2015-04-20 12:18:37 +00:00
Metrics/AbcSize:
Exclude:
- 'app/controllers/passwords_controller.rb'
- 'app/controllers/sessions_controller.rb'
- 'app/controllers/users_controller.rb'
2014-01-23 11:20:48 +00:00
2015-04-20 12:18:37 +00:00
Metrics/BlockNesting:
Max: 2
2014-03-28 15:00:40 +00:00
2015-04-20 12:18:37 +00:00
Metrics/LineLength:
AllowURI: true
2014-03-28 15:00:40 +00:00
Enabled: false
2015-04-20 12:18:37 +00:00
Metrics/MethodLength:
2014-01-23 11:20:48 +00:00
CountComments: false
2015-04-20 12:18:37 +00:00
Max: 10
Exclude:
- 'db/migrate/*.rb'
2014-01-23 11:20:48 +00:00
2015-04-20 12:18:37 +00:00
Metrics/ParameterLists:
Max: 4
CountKeywordArgs: true
2014-01-23 11:20:48 +00:00
2015-04-20 12:18:37 +00:00
Style/AccessModifierIndentation:
EnforcedStyle: outdent
2014-10-31 09:30:34 +00:00
2015-04-20 12:18:37 +00:00
Style/CollectionMethods:
2014-01-23 11:20:48 +00:00
PreferredMethods:
map: 'collect'
reduce: 'inject'
find: 'detect'
find_all: 'select'
2015-04-20 12:18:37 +00:00
Style/Documentation:
2014-01-23 11:20:48 +00:00
Enabled: false
2015-04-20 12:18:37 +00:00
Style/DotPosition:
EnforcedStyle: trailing
2014-01-23 11:20:48 +00:00
2015-04-20 12:18:37 +00:00
Style/DoubleNegation:
2014-01-23 11:20:48 +00:00
Enabled: false
2015-04-20 12:18:37 +00:00
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
2014-03-28 15:00:40 +00:00
2016-01-16 21:56:10 +00:00
Style/TrailingCommaInLiteral:
2015-04-20 12:18:37 +00:00
EnforcedStyleForMultiline: 'comma'
2014-03-28 15:00:40 +00:00
2015-04-20 12:18:37 +00:00
Style/WordArray:
2014-03-28 15:00:40 +00:00
Exclude:
- 'app/helpers/application_helper.rb'