Merge pull request #3373 from MikeMcQuaid/max-line-length

rubocop.yml: reduce tap maximum line length.
This commit is contained in:
Mike McQuaid 2017-10-27 14:44:18 +01:00 committed by GitHub
commit 2be11f6040
3 changed files with 21 additions and 4 deletions

View File

@ -58,7 +58,7 @@ Lint/EndAlignment:
Lint/ParenthesesAsGroupedExpression: Lint/ParenthesesAsGroupedExpression:
Enabled: false Enabled: false
# TODO: try to bring down all metrics maximums # most metrics don't make sense to apply for formulae/taps
Metrics/AbcSize: Metrics/AbcSize:
Enabled: false Enabled: false
@ -72,9 +72,10 @@ Metrics/CyclomaticComplexity:
Enabled: false Enabled: false
Metrics/LineLength: Metrics/LineLength:
Max: 324 # 124 is the goal as GitHub diff UI wraps beyond that
# ignore manpage comments Max: 190
IgnoredPatterns: ['#: '] # ignore manpage comments and long single-line strings
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']
Metrics/MethodLength: Metrics/MethodLength:
Enabled: false Enabled: false

View File

@ -25,6 +25,10 @@ Lint/NestedMethodDefinition:
Lint/ParenthesesAsGroupedExpression: Lint/ParenthesesAsGroupedExpression:
Enabled: true Enabled: true
# TODO: try to bring down all metrics maximums
Metrics/AbcSize:
Max: 250
Metrics/BlockLength: Metrics/BlockLength:
Max: 1250 Max: 1250
@ -34,12 +38,24 @@ Metrics/BlockNesting:
Metrics/ClassLength: Metrics/ClassLength:
Max: 1226 Max: 1226
Metrics/CyclomaticComplexity:
Max: 75
Metrics/LineLength: Metrics/LineLength:
# 124 is the goal as GitHub diff UI wraps beyond that
Max: 244 Max: 244
# ignore manpage comments
IgnoredPatterns: ['#: ']
Metrics/MethodLength: Metrics/MethodLength:
Max: 195 Max: 195
Metrics/ModuleLength:
Max: 222
Metrics/PerceivedComplexity:
Max: 100
# we won't change backward compatible method names # we won't change backward compatible method names
Naming/MethodName: Naming/MethodName:
Exclude: Exclude:

Binary file not shown.