1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Update Rubocop & Rubocop config

This commit is contained in:
Elliot Winkler 2019-05-30 00:28:00 -06:00
parent 4d3efe23f4
commit a5aea2ee24
2 changed files with 26 additions and 16 deletions

View file

@ -2,12 +2,20 @@ AllCops:
TargetRubyVersion: 2.4
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
Layout/CommentIndentation:
Enabled: false
Layout/ConditionPosition:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Layout/IndentHeredoc:
Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/SpaceInLambdaLiteral:
EnforcedStyle: require_space
Lint/AmbiguousOperator:
Enabled: false
Lint/AmbiguousRegexpLiteral:
@ -18,9 +26,9 @@ Lint/DeprecatedClassMethods:
Enabled: false
Lint/ElseLayout:
Enabled: false
Lint/HandleExceptions:
Lint/FlipFlop:
Enabled: false
Lint/IndentHeredoc:
Lint/HandleExceptions:
Enabled: false
Lint/LiteralInInterpolation:
Enabled: false
@ -34,12 +42,15 @@ Lint/UnderscorePrefixedVariableName:
Enabled: false
Lint/Void:
Enabled: false
Metrics/AbcSize:
Max: 25
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/LineLength:
IgnoredPatterns:
- "^[ ]*#.+$"
- "^[ ]*describe.+$"
- "^[ ]*context.+$"
- "^[ ]*shared_context.+$"
@ -47,9 +58,12 @@ Metrics/LineLength:
- "^[ ]*it.+$"
- "^[ ]*'.+?' => '.+?',?$"
- "^[ ]*\".+?\" => \".+?\",?$"
- "^[ ]*.+?: .+?$"
Metrics/MethodLength:
Max: 30
Metrics/ParameterLists:
CountKeywordArgs: false
Metrics/PerceivedComplexity:
Max: 10
Naming/AccessorMethodName:
Enabled: false
Naming/AsciiIdentifiers:
@ -106,8 +120,6 @@ Style/Encoding:
Enabled: false
Style/EvenOdd:
Enabled: false
Style/FlipFlop:
Enabled: false
Style/FormatString:
Enabled: false
Style/FrozenStringLiteralComment:

View file

@ -10,13 +10,12 @@ GEM
coderay (1.1.2)
diff-lcs (1.3)
fssm (0.2.10)
jaro_winkler (1.5.1)
jaro_winkler (1.5.2)
method_source (0.9.0)
multi_json (1.12.1)
parallel (1.12.1)
parser (2.5.1.2)
parallel (1.17.0)
parser (2.6.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
@ -41,17 +40,16 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-support (3.6.0)
rubocop (0.59.0)
rubocop (0.70.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.10.0)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
thor (0.20.0)
unicode-display_width (1.4.0)
unicode-display_width (1.6.0)
yard (0.9.12)
zeus (0.15.14)
method_source (>= 0.6.7)
@ -74,4 +72,4 @@ DEPENDENCIES
zeus
BUNDLED WITH
1.16.5
1.17.2