.rubocop.yml in keep_up-0.6.3 vs .rubocop.yml in keep_up-0.7.0
- old
+ new
@@ -1,8 +1,14 @@
+inherit_from: .rubocop_todo.yml
+
+require:
+ - rubocop-rspec
+
AllCops:
Exclude:
- 'tmp/**/*'
+ TargetRubyVersion: 2.3
# Dot at end of line makes it clearer that the line is not done
Layout/DotPosition:
EnforcedStyle: trailing
@@ -27,20 +33,20 @@
# 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
Style/GuardClause:
MinBodyLength: 2
-
-# Don't use if or unless as modifier if the line gets too long
-Style/IfUnlessModifier:
- MaxLineLength: 60
# Explicite numbers are often clearer, and more robust.
Style/NumericPredicate:
Enabled: false