mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
87 lines
1.8 KiB
YAML
87 lines
1.8 KiB
YAML
AllCops:
|
|
RunRailsCops: true
|
|
|
|
Exclude:
|
|
- 'Guardfile'
|
|
# stuff generated by AR and rails
|
|
- 'db/schema.rb'
|
|
- 'db/whois_schema.rb'
|
|
- 'db/api_log_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
|
|
|
|
# no need to worry about it
|
|
Style/StringLiterals:
|
|
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
|
|
|
|
# turn off comment intention check during development
|
|
# because NerdCommenter honors commented code intentions
|
|
Style/CommentIndentation:
|
|
Enabled: false
|
|
|
|
# It did not alayws suggested good format
|
|
Style/AlignParameters:
|
|
Enabled: false
|
|
|
|
# No need fancy style of numbers such as 1_000_000
|
|
Style/NumericLiterals:
|
|
Enabled: false
|