.rubocop.yml in alba-2.2.0 vs .rubocop.yml in alba-2.3.0
- old
+ new
@@ -1,11 +1,16 @@
---
inherit_gem:
rubocop-sensible: 'config/rubocop.yml'
+inherit_mode:
+ merge:
+ - Exclude
+
require:
+ - rubocop-md
- rubocop-minitest
- rubocop-performance
- rubocop-rake
AllCops:
@@ -20,10 +25,15 @@
# Items in Gemfile is dev dependencies and we don't have to specify versions.
Bundler/GemVersion:
Enabled: false
+# Test class is a class, but not really
+Layout/ClassStructure:
+ Exclude:
+ - 'test/**/*'
+
# We'd like to write something like:
# assert_equal(
# expected,
# actual
# )
@@ -78,20 +88,36 @@
# I know what I do :)
Style/DisableCopsWithinSourceCodeDirective:
Enabled: false
+Style/Documentation:
+ Exclude:
+ - 'test/**/*'
+
+Style/DocumentationMethod:
+ Exclude:
+ - 'README.md'
+
Style/FrozenStringLiteralComment:
Enabled: false
+Style/ImplicitRuntimeError:
+ Exclude:
+ - 'README.md'
+
Style/InlineComment:
Enabled: false
Style/MethodCallWithArgsParentheses:
- IgnoredMethods: ['require', 'require_relative', 'include', 'extend', 'puts', 'p', 'warn', 'raise', 'send', 'public_send']
+ AllowedMethods: ['require', 'require_relative', 'include', 'extend', 'puts', 'p', 'warn', 'raise', 'send', 'public_send']
Exclude:
# There are so many `attributes` call without parenthese and that's absolutely fine
- 'test/**/*.rb'
# There are so many cases we just want `if` expression!
Style/MissingElse:
EnforcedStyle: case
+
+Style/OptionalBooleanParameter:
+ Exclude:
+ - 'README.md'