Enable new Rubocop 1.7.0 cops (#12053)

This commit is contained in:
rhymes 2021-01-02 11:11:43 +01:00 committed by GitHub
parent f1155b11b6
commit bf94906703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'