internetee-registry/.rubocop.yml
2014-12-03 17:18:01 +02:00

68 lines
1.3 KiB
YAML

AllCops:
RunRailsCops: true
Exclude:
- 'Guardfile'
# stuff generated by AR and rails
- 'db/schema.rb'
- 'db/migrate/*'
# epp support files until 'complexity issues' will be solved
- 'spec/support/epp.rb'
- 'spec/support/epp_contact_xml_builder.rb'
- 'vendor/bundle/**/*'
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 25 # default 10
Metrics/ClassLength:
Max: 300
Documentation:
Enabled: false
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/AndOr:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
Style/IndentHash:
Enabled: false
# a bit too annoying requirement, no big drawback yet dedected
Style/TrailingWhitespace:
Enabled: false
# a bit too annoying requirement, no big drawback yet dedected
Style/TrailingBlankLines:
Enabled: false
# allow == operator used in void context in specs
Void:
Exclude:
- 'spec/**/*'
# allow should == nil in spec
Style/NilComparison:
Exclude:
- 'spec/**/*'
# No need to force reduce to use |a, e| as parameters.
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Enabled: false
# allow prefix for models and controllers,
# otherwise we have to intent all body 4 spaces
Style/ClassAndModuleChildren:
Enabled: false
# Allow to use Estonian terms/data in comments
Style/AsciiComments:
Enabled: false