Enable new Rubocop 1.7.0 cops (#12053)
This commit is contained in:
parent
f1155b11b6
commit
bf94906703
1 changed files with 15 additions and 0 deletions
15
.rubocop.yml
15
.rubocop.yml
|
|
@ -30,6 +30,10 @@ Bundler/OrderedGems:
|
|||
|
||||
#################### Layout ###########################
|
||||
|
||||
Lint/AmbiguousAssignment:
|
||||
Description: 'Checks for mistyped shorthand assignments.'
|
||||
Enabled: true
|
||||
|
||||
Layout/ClassStructure:
|
||||
Description: 'Enforces a configured order of definitions within a class body.'
|
||||
StyleGuide: '#consistent-classes'
|
||||
|
|
@ -125,6 +129,11 @@ Layout/SpaceAroundMethodCallOperator:
|
|||
Description: 'Checks method call operators to not have spaces around them.'
|
||||
Enabled: true
|
||||
|
||||
Layout/SpaceBeforeBrackets:
|
||||
Description: 'Checks for receiver with a space before the opening brackets.'
|
||||
StyleGuide: '#space-in-brackets-access'
|
||||
Enabled: true
|
||||
|
||||
#################### Lint ##################################
|
||||
|
||||
Lint/AmbiguousBlockAssociation:
|
||||
|
|
@ -395,6 +404,12 @@ Style/Encoding:
|
|||
Description: 'Use UTF-8 as the source file encoding.'
|
||||
Enabled: false
|
||||
|
||||
Style/HashExcept:
|
||||
Description: >-
|
||||
Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods
|
||||
that can be replaced with `Hash#except` method.
|
||||
Enabled: true
|
||||
|
||||
Style/ExponentialNotation:
|
||||
Description: 'When using exponential notation, favor a mantissa between 1 (inclusive) and 10 (exclusive).'
|
||||
StyleGuide: '#exponential-notation'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue