additionals/.rubocop.yml

50 lines
671 B
YAML
Raw Normal View History

Rails:
Enabled: true
AllCops:
TargetRubyVersion: 2.2
TargetRailsVersion: 5.2
Metrics/AbcSize:
Max: 65
Metrics/BlockLength:
2018-04-04 09:21:17 +03:00
Max: 60
Metrics/ClassLength:
2018-04-04 09:21:17 +03:00
Max: 500
Metrics/CyclomaticComplexity:
2018-04-19 16:02:26 +03:00
Max: 20
2015-10-09 19:20:04 +03:00
Metrics/LineLength:
Max: 140
Metrics/MethodLength:
Max: 60
Metrics/ModuleLength:
2018-04-04 09:21:17 +03:00
Max: 500
2015-12-06 14:48:33 +03:00
2015-10-09 19:20:04 +03:00
Metrics/PerceivedComplexity:
2018-04-19 16:02:26 +03:00
Max: 20
2015-10-09 19:20:04 +03:00
Rails/SkipsModelValidations:
2015-10-10 15:11:02 +03:00
Enabled: false
Rails/CreateTableWithTimestamps:
Enabled: false
# we drop this, if we drop Rails 4.2 support
Rails/ApplicationRecord:
Enabled: false
Style/AutoResourceCleanup:
Enabled: true
2016-10-19 14:30:14 +03:00
Style/Documentation:
Enabled: false
2018-07-15 11:07:31 +03:00
Style/ExpandPathArguments:
Enabled: false