Skip to content
Snippets Groups Projects
Unverified Commit cd3ced48 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

rubocop: set LineLength to 118.

GitHub diff UI wraps beyond 118 characters. This also allows enabling
`Style/IfUnlessModifier` (which autocorrects).
parent f5ba503a
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment