.rubocop.yml in keep_up-0.8.0 vs .rubocop.yml in keep_up-0.8.1
- old
+ new
@@ -7,41 +7,45 @@
AllCops:
Exclude:
- 'tmp/**/*'
TargetRubyVersion: 2.4
-# Dot at end of line makes it clearer that the line is not done
-Layout/DotPosition:
- EnforcedStyle: trailing
+# Require lines to fit in pull requests.
+Layout/LineLength:
+ Max: 92
-# Multi-line assignment should be simply indented. Aligning them makes it even
-# harder to keep a sane line length.
-Layout/MultilineOperationIndentation:
- EnforcedStyle: indented
+# Don't force lonely closing parentheses
+Layout/MultilineMethodCallBraceLayout:
+ EnforcedStyle: same_line
# Multi-line method calls should be simply indented. Aligning them makes it
# even harder to keep a sane line length.
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
+# Multi-line assignment should be simply indented. Aligning them makes it even
+# harder to keep a sane line length.
+Layout/MultilineOperationIndentation:
+ EnforcedStyle: indented
+
+# Force consistent spacing independent of block contents
+Layout/SpaceBeforeBlockBraces:
+ EnforcedStyleForEmptyBraces: space
+
+# This cop gives bad advice
+Lint/AmbiguousBlockAssociation:
+ Enabled: false
+
# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
AllowSafeAssignment: true
# Spec describe blocks can be any size
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
-# Require lines to fit in pull requests.
-Metrics/LineLength:
- Max: 92
-
-# Allow deeper nesting for spec organization
-RSpec/NestedGroups:
- Max: 4
-
# Allow and/or for control flow only
Style/AndOr:
EnforcedStyle: conditionals
# Require at least two dependent lines before suggesting a guard clause
@@ -54,8 +58,18 @@
# Allow explicit return with multiple return values
Style/RedundantReturn:
AllowMultipleReturnValues: true
-# I prefer to have symbols look like symbols
+# Do not commit to use of interpolation
+Style/StringLiterals:
+ EnforcedStyle: double_quotes
+
+# Prefer symbols to look like symbols
Style/SymbolArray:
EnforcedStyle: brackets
+
+# Project-specific configuration goes here.
+
+# Allow deeper nesting for spec organization
+RSpec/NestedGroups:
+ Max: 4