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:
parent
4d3efe23f4
commit
a5aea2ee24
2 changed files with 26 additions and 16 deletions
22
.rubocop.yml
22
.rubocop.yml
|
@ -2,12 +2,20 @@ AllCops:
|
||||||
TargetRubyVersion: 2.4
|
TargetRubyVersion: 2.4
|
||||||
Layout/AlignParameters:
|
Layout/AlignParameters:
|
||||||
EnforcedStyle: with_fixed_indentation
|
EnforcedStyle: with_fixed_indentation
|
||||||
|
Layout/CommentIndentation:
|
||||||
|
Enabled: false
|
||||||
Layout/ConditionPosition:
|
Layout/ConditionPosition:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Layout/DotPosition:
|
Layout/DotPosition:
|
||||||
EnforcedStyle: trailing
|
EnforcedStyle: trailing
|
||||||
|
Layout/EmptyLineBetweenDefs:
|
||||||
|
AllowAdjacentOneLineDefs: true
|
||||||
|
Layout/IndentHeredoc:
|
||||||
|
Enabled: false
|
||||||
Layout/MultilineMethodCallIndentation:
|
Layout/MultilineMethodCallIndentation:
|
||||||
EnforcedStyle: indented
|
EnforcedStyle: indented
|
||||||
|
Layout/SpaceInLambdaLiteral:
|
||||||
|
EnforcedStyle: require_space
|
||||||
Lint/AmbiguousOperator:
|
Lint/AmbiguousOperator:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/AmbiguousRegexpLiteral:
|
Lint/AmbiguousRegexpLiteral:
|
||||||
|
@ -18,9 +26,9 @@ Lint/DeprecatedClassMethods:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/ElseLayout:
|
Lint/ElseLayout:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/HandleExceptions:
|
Lint/FlipFlop:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/IndentHeredoc:
|
Lint/HandleExceptions:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/LiteralInInterpolation:
|
Lint/LiteralInInterpolation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
@ -34,12 +42,15 @@ Lint/UnderscorePrefixedVariableName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/Void:
|
Lint/Void:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
Metrics/AbcSize:
|
||||||
|
Max: 25
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Metrics/ClassLength:
|
Metrics/ClassLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Metrics/LineLength:
|
Metrics/LineLength:
|
||||||
IgnoredPatterns:
|
IgnoredPatterns:
|
||||||
|
- "^[ ]*#.+$"
|
||||||
- "^[ ]*describe.+$"
|
- "^[ ]*describe.+$"
|
||||||
- "^[ ]*context.+$"
|
- "^[ ]*context.+$"
|
||||||
- "^[ ]*shared_context.+$"
|
- "^[ ]*shared_context.+$"
|
||||||
|
@ -47,9 +58,12 @@ Metrics/LineLength:
|
||||||
- "^[ ]*it.+$"
|
- "^[ ]*it.+$"
|
||||||
- "^[ ]*'.+?' => '.+?',?$"
|
- "^[ ]*'.+?' => '.+?',?$"
|
||||||
- "^[ ]*\".+?\" => \".+?\",?$"
|
- "^[ ]*\".+?\" => \".+?\",?$"
|
||||||
- "^[ ]*.+?: .+?$"
|
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Max: 30
|
Max: 30
|
||||||
|
Metrics/ParameterLists:
|
||||||
|
CountKeywordArgs: false
|
||||||
|
Metrics/PerceivedComplexity:
|
||||||
|
Max: 10
|
||||||
Naming/AccessorMethodName:
|
Naming/AccessorMethodName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Naming/AsciiIdentifiers:
|
Naming/AsciiIdentifiers:
|
||||||
|
@ -106,8 +120,6 @@ Style/Encoding:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/EvenOdd:
|
Style/EvenOdd:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/FlipFlop:
|
|
||||||
Enabled: false
|
|
||||||
Style/FormatString:
|
Style/FormatString:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/FrozenStringLiteralComment:
|
Style/FrozenStringLiteralComment:
|
||||||
|
|
20
Gemfile.lock
20
Gemfile.lock
|
@ -10,13 +10,12 @@ GEM
|
||||||
coderay (1.1.2)
|
coderay (1.1.2)
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.3)
|
||||||
fssm (0.2.10)
|
fssm (0.2.10)
|
||||||
jaro_winkler (1.5.1)
|
jaro_winkler (1.5.2)
|
||||||
method_source (0.9.0)
|
method_source (0.9.0)
|
||||||
multi_json (1.12.1)
|
multi_json (1.12.1)
|
||||||
parallel (1.12.1)
|
parallel (1.17.0)
|
||||||
parser (2.5.1.2)
|
parser (2.6.3.0)
|
||||||
ast (~> 2.4.0)
|
ast (~> 2.4.0)
|
||||||
powerpack (0.1.2)
|
|
||||||
pry (0.11.3)
|
pry (0.11.3)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
method_source (~> 0.9.0)
|
method_source (~> 0.9.0)
|
||||||
|
@ -41,17 +40,16 @@ GEM
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.6.0)
|
rspec-support (~> 3.6.0)
|
||||||
rspec-support (3.6.0)
|
rspec-support (3.6.0)
|
||||||
rubocop (0.59.0)
|
rubocop (0.70.0)
|
||||||
jaro_winkler (~> 1.5.1)
|
jaro_winkler (~> 1.5.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 2.5, != 2.5.1.1)
|
parser (>= 2.6)
|
||||||
powerpack (~> 0.1)
|
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (~> 1.0, >= 1.0.1)
|
unicode-display_width (>= 1.4.0, < 1.7)
|
||||||
ruby-progressbar (1.10.0)
|
ruby-progressbar (1.10.1)
|
||||||
thor (0.20.0)
|
thor (0.20.0)
|
||||||
unicode-display_width (1.4.0)
|
unicode-display_width (1.6.0)
|
||||||
yard (0.9.12)
|
yard (0.9.12)
|
||||||
zeus (0.15.14)
|
zeus (0.15.14)
|
||||||
method_source (>= 0.6.7)
|
method_source (>= 0.6.7)
|
||||||
|
@ -74,4 +72,4 @@ DEPENDENCIES
|
||||||
zeus
|
zeus
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.16.5
|
1.17.2
|
||||||
|
|
Loading…
Reference in a new issue