Skip to content

Commit

Permalink
Merge pull request #467 from Shopify/dependabot/bundler/rubocop-1.41.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Jan 2, 2023
2 parents cb54336 + f553fed commit 80be12b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
rubocop-shopify (2.10.1)
rubocop (~> 1.41)
rubocop (~> 1.42)

GEM
remote: https://rubygems.org/
Expand All @@ -27,17 +27,17 @@ GEM
rake (13.0.6)
regexp_parser (2.6.1)
rexml (3.2.5)
rubocop (1.41.0)
rubocop (1.42.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.23.0, < 2.0)
rubocop-ast (>= 1.24.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.24.0)
rubocop-ast (1.24.1)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
unicode-display_width (2.3.0)
Expand Down
2 changes: 1 addition & 1 deletion rubocop-shopify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Gem::Specification.new do |s|

s.required_ruby_version = ">= 2.7.0"

s.add_dependency("rubocop", "~> 1.41")
s.add_dependency("rubocop", "~> 1.42")
end
9 changes: 9 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ Style/MapCompactWithConditionalBlock:
Style/MapToHash:
Enabled: false

Style/MapToSet:
Enabled: false

Style/MethodCallWithArgsParentheses:
Enabled: true
AllowedMethods:
Expand All @@ -584,6 +587,9 @@ Style/MethodCallWithArgsParentheses:
Style/MinMax:
Enabled: false

Style/MinMaxComparison:
Enabled: true

Style/MixinGrouping:
Enabled: false

Expand Down Expand Up @@ -775,3 +781,6 @@ Style/WordArray:

Style/YodaCondition:
Enabled: false

Style/YodaExpression:
Enabled: false
23 changes: 23 additions & 0 deletions test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@ Style/ConcatArrayLiterals:
Description: Enforces the use of `Array#push(item)` instead of `Array#concat([item])`
to avoid redundant array literals.
Enabled: true
Safe: false
VersionAdded: '1.41'
Style/ConditionalAssignment:
Description: Use the return value of `if` and `case` statements for assignment to
Expand Down Expand Up @@ -3059,6 +3060,11 @@ Style/MapToHash:
Enabled: false
VersionAdded: '1.24'
Safe: false
Style/MapToSet:
Description: Prefer `to_set` with a block over `map.to_set`.
Enabled: false
Safe: false
VersionAdded: '1.42'
Style/MethodCallWithArgsParentheses:
Description: Use parentheses for method calls with arguments.
StyleGuide: "#method-invocation-parens"
Expand Down Expand Up @@ -3117,6 +3123,12 @@ Style/MinMax:
in conjunction.
Enabled: false
VersionAdded: '0.50'
Style/MinMaxComparison:
Description: Enforces the use of `max` or `min` instead of comparison for greater
or less.
Enabled: true
Safe: false
VersionAdded: '1.42'
Style/MissingElse:
Description: Require if/case expressions to have an else branches. If enabled, it
is recommended that Style/UnlessElse and Style/EmptyElse be enabled. This will
Expand Down Expand Up @@ -4096,6 +4108,17 @@ Style/YodaCondition:
Safe: false
VersionAdded: '0.49'
VersionChanged: '0.75'
Style/YodaExpression:
Description: Forbid the use of yoda expressions.
Enabled: false
Safe: false
VersionAdded: '1.42'
SupportedOperators:
- "*"
- "+"
- "&"
- "|"
- "^"
Style/ZeroLengthPredicate:
Description: 'Use #empty? when testing for objects of length 0.'
Enabled: true
Expand Down

0 comments on commit 80be12b

Please sign in to comment.