.rubocop_opinionated.yml in public_suffix-4.0.7 vs .rubocop_opinionated.yml in public_suffix-5.0.0
- old
+ new
@@ -13,16 +13,10 @@
Exclude:
- 'spec/**/*_spec.rb'
- 'test/**/*_test.rb'
Max: 100
-Lint/ConstantDefinitionInBlock:
- Exclude:
- - 'Rakefile'
- - 'spec/**/*'
- - 'test/**/*'
-
# [codesmell]
Metrics/AbcSize:
Enabled: false
Exclude:
- 'spec/**/*_spec.rb'
@@ -99,47 +93,25 @@
# Double empty lines are useful to separate conceptually different methods
# in the same class or module.
Layout/EmptyLineBetweenDefs:
Enabled: false
-# I personally don't care about the format style.
-# In most cases I like to use %, but not at the point I want to enforce it
-# as a convention in the entire code.
-Style/FormatString:
- Enabled: false
-
# Annotated tokens (like %<foo>s) are a good thing, but in most cases we don't need them.
# %s is a simpler and straightforward version that works in almost all cases. So don't complain.
Style/FormatStringToken:
Enabled: false
# unless is not always cool.
Style/NegatedIf:
Enabled: false
-# For years, %w() has been the de-facto standard. A lot of libraries are using ().
-# Switching to [] would be a nightmare.
-Style/PercentLiteralDelimiters:
- Enabled: false
-
# There are cases were the inline rescue is ok. We can either downgrade the severity,
# or rely on the developer judgement on a case-by-case basis.
Style/RescueModifier:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
-
-# Sorry, but using trailing spaces helps readability.
-#
-# %w( foo bar )
-#
-# looks better to me than
-#
-# %w( foo bar )
-#
-Layout/SpaceInsidePercentLiteralDelimiters:
- Enabled: false
# Hate It or Love It, I prefer double quotes as this is more consistent
# with several other programming languages and the output of puts and inspect.
Style/StringLiterals:
EnforcedStyle: double_quotes