mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Disable unneeded Rubocop rules
This commit is contained in:
parent
c5206b407f
commit
9b20c3b385
18
.rubocop.yml
18
.rubocop.yml
@ -1,5 +1,5 @@
|
|||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.1
|
TargetRubyVersion: 2.4
|
||||||
|
|
||||||
# We use a different style where we add the short license header just below the
|
# We use a different style where we add the short license header just below the
|
||||||
# magic comments separated by an empty comment line. Unfortunately, this cop
|
# magic comments separated by an empty comment line. Unfortunately, this cop
|
||||||
@ -15,6 +15,12 @@ Layout/MultilineMethodCallIndentation:
|
|||||||
Layout/MultilineOperationIndentation:
|
Layout/MultilineOperationIndentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# To emulate parent classes in the standards library and associated behavior
|
||||||
|
# with default rescues, we sometimes inherit direct;ly from Exception or related
|
||||||
|
# classes
|
||||||
|
Lint/InheritException:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
# Sometimes we want to capture all exceptions. We need to make sure to re-raise
|
# Sometimes we want to capture all exceptions. We need to make sure to re-raise
|
||||||
# these again in any case.
|
# these again in any case.
|
||||||
Lint/RescueException:
|
Lint/RescueException:
|
||||||
@ -74,6 +80,10 @@ Style/DoubleNegation:
|
|||||||
Style/EmptyMethod:
|
Style/EmptyMethod:
|
||||||
EnforcedStyle: expanded
|
EnforcedStyle: expanded
|
||||||
|
|
||||||
|
# Most predicated are not available in our supported version of Ruby 2.1
|
||||||
|
Style/NumericPredicate:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
Style/PercentLiteralDelimiters:
|
Style/PercentLiteralDelimiters:
|
||||||
PreferredDelimiters:
|
PreferredDelimiters:
|
||||||
'%w': '[]'
|
'%w': '[]'
|
||||||
@ -84,6 +94,11 @@ Style/PercentLiteralDelimiters:
|
|||||||
Style/RedundantSelf:
|
Style/RedundantSelf:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# Frozen string takes care of most strings for Ribies where this is supported
|
||||||
|
# Sometimes, we do want to make sure though.
|
||||||
|
Style/RedundantFreeze:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
# Doesn't work with Refinements and is sometimes clearer with the expanded
|
# Doesn't work with Refinements and is sometimes clearer with the expanded
|
||||||
# version
|
# version
|
||||||
Style/SymbolProc:
|
Style/SymbolProc:
|
||||||
@ -101,4 +116,3 @@ Style/RescueModifier:
|
|||||||
# Use %w when it makes sense. Use literal arrays where it is more clear.
|
# Use %w when it makes sense. Use literal arrays where it is more clear.
|
||||||
Style/WordArray:
|
Style/WordArray:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user