rubocop: set LineLength to 118.
GitHub diff UI wraps beyond 118 characters. This also allows enabling `Style/IfUnlessModifier` (which autocorrects).
This commit is contained in:
parent
f5ba503aaa
commit
cd3ced48e9
@ -78,9 +78,9 @@ Metrics/ModuleLength:
|
||||
Metrics/PerceivedComplexity:
|
||||
Enabled: false
|
||||
|
||||
# GitHub diff UI wraps beyond 118 characters (so that's the goal)
|
||||
# GitHub diff UI wraps beyond 118 characters
|
||||
Layout/LineLength:
|
||||
Max: 167
|
||||
Max: 118
|
||||
# ignore manpage comments and long single-line strings
|
||||
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']
|
||||
|
||||
|
||||
@ -58,9 +58,9 @@ Style/HashTransformKeys:
|
||||
Style/HashTransformValues:
|
||||
Enabled: true
|
||||
|
||||
# This shouldn't be enabled until LineLength is lower.
|
||||
# Enabled now LineLength is lowish.
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
# Only use this for numbers >= `1_000_000`.
|
||||
Style/NumericLiterals:
|
||||
|
||||
@ -61,12 +61,6 @@ Metrics/PerceivedComplexity:
|
||||
Enabled: true
|
||||
Max: 100
|
||||
|
||||
# GitHub diff UI wraps beyond 118 characters
|
||||
Layout/LineLength:
|
||||
Max: 118
|
||||
# ignore manpage comments
|
||||
IgnoredPatterns: ['#: ']
|
||||
|
||||
# we won't change backward compatible predicate names
|
||||
Naming/PredicateName:
|
||||
Exclude:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user