Updated, rails optimized common rubocop configuration

This commit is contained in:
Alexander Meindl
2017-10-15 09:33:41 +02:00
parent b2d71d2a0e
commit 7a3d335065

View File

@@ -1,43 +1,39 @@
Rails:
Enabled: true
Rails/ApplicationRecord:
Enabled: false
AllCops:
TargetRubyVersion: 2.1
TargetRailsVersion: 4.2
Metrics/LineLength:
Max: 140
# Offense count: 34
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 60
# Offense count: 11
Metrics/CyclomaticComplexity:
Max: 13
# Offense count: 10
Metrics/PerceivedComplexity:
Max: 14
# Offense count: 15
Metrics/AbcSize:
Max: 65
Metrics/ModuleLength:
Max: 300
Metrics/BlockLength:
Max: 50
Metrics/ClassLength:
Max: 300
Metrics/CyclomaticComplexity:
Max: 13
Metrics/LineLength:
Max: 140
Metrics/MethodLength:
Max: 60
Metrics/ModuleLength:
Max: 300
Metrics/PerceivedComplexity:
Max: 14
Rails/SkipsModelValidations:
Enabled: false
Style/AutoResourceCleanup:
Enabled: true
Style/Documentation:
Enabled: false
Rails/HttpPositionalArguments:
Enabled: false
Metrics/BlockLength:
Max: 50