.rubocop.yml in skippy-0.4.0.a vs .rubocop.yml in skippy-0.4.1.a
- old
+ new
@@ -43,18 +43,26 @@
Metrics/ClassLength:
Exclude:
- test/**/*
+# Too noisy.
+Metrics/CyclomaticComplexity:
+ Enabled: false
+
Metrics/LineLength:
Exclude:
- features/step_definitions/**/*
Metrics/MethodLength:
Exclude:
- test/**/*
+# Too noisy.
+Metrics/PerceivedComplexity:
+ Enabled: false
+
# Prefer { ... } over do ... end except for control flow and
# method defintions. Unfortunatly, no cop configuration for this.
# https://github.com/chneukirchen/styleguide/blob/e60de37b478d3f892f6985a58d573016f33f0269/RUBY-STYLE#L63-L67
Style/BlockDelimiters:
EnforcedStyle: semantic
@@ -78,9 +86,21 @@
Enabled: false
# Conflict too often with Metric/LineLength.
# https://github.com/bbatsov/rubocop/issues/1332#issuecomment-277503854
Style/GuardClause:
+ Enabled: false
+
+# In the context of the Thor DLS the rocket arrow => reads better.
+Style/HashSyntax:
+ Exclude:
+ - app/commands/**/*
+
+# Some times it reads clearer to not trail if/unless at the end.
+Style/IfUnlessModifier:
+ Enabled: false
+
+Style/ModuleFunction:
Enabled: false
# %w and %i etc isn't really intuitive unless you are really familiar with the
# syntax. %w seems used often enough. But [:symbol, :foo] reads clearer than
# %i(symbol foo).