adopt-a-hydrant/.rubocop.yml

108 lines
1.7 KiB
YAML
Raw Normal View History

2014-01-23 11:20:48 +00:00
AllCops:
2014-04-07 08:16:46 +00:00
Include:
2014-01-23 11:20:48 +00:00
- 'Gemfile'
- 'Rakefile'
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
# Avoid long parameter lists
ParameterLists:
Max: 4
CountKeywordArgs: true
2014-03-28 15:00:40 +00:00
ClassLength:
Max: 100
LineLength:
Enabled: false
2014-01-23 11:20:48 +00:00
MethodLength:
CountComments: false
2014-03-28 15:00:40 +00:00
Max: 15
2014-01-23 11:20:48 +00:00
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 2
2014-10-31 09:30:34 +00:00
AbcSize:
Enabled: false
2014-01-23 11:20:48 +00:00
# Align with the style guide.
CollectionMethods:
PreferredMethods:
map: 'collect'
reduce: 'inject'
find: 'detect'
find_all: 'select'
# Disable documentation checking until a class needs to be documented once
Documentation:
Enabled: false
2014-03-28 15:00:40 +00:00
# Enforce Ruby 1.9-compatible hash syntax
2014-01-23 11:20:48 +00:00
HashSyntax:
2014-03-25 09:47:44 +00:00
EnforcedStyle: ruby19
2014-01-23 11:20:48 +00:00
# No spaces inside hash literals
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
# Allow dots at the end of lines
DotPosition:
Enabled: false
# Don't require magic comment at the top of every file
Encoding:
Enabled: false
# Enforce outdenting of access modifiers (i.e. public, private, protected)
AccessModifierIndentation:
EnforcedStyle: outdent
EmptyLinesAroundAccessModifier:
Enabled: true
# Align ends correctly
EndAlignment:
AlignWith: variable
# Indentation of when/else
CaseIndentation:
IndentWhenRelativeTo: end
IndentOneStep: false
Lambda:
Enabled: false
2014-03-28 15:00:40 +00:00
RaiseArgs:
EnforcedStyle: compact
TrailingComma:
Enabled: false
DoubleNegation:
Enabled: false
PercentLiteralDelimiters:
PreferredDelimiters:
'%': ()
'%i': ()
'%q': ()
'%Q': ()
'%r': '{}'
'%s': ()
'%w': '[]'
'%W': '[]'
'%x': ()
WordArray:
Exclude:
- 'app/helpers/application_helper.rb'
NumericLiterals:
Exclude:
- 'db/seeds.rb'