diff --git a/Gemfile.lock b/Gemfile.lock index 537c195b..7d471a6f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rubocop-shopify (2.5.0) + rubocop-shopify (2.6.0) rubocop (~> 1.29) GEM @@ -24,9 +24,9 @@ GEM pry (~> 0.13.0) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.3.1) + regexp_parser (2.4.0) rexml (3.2.5) - rubocop (1.29.0) + rubocop (1.29.1) parallel (~> 1.10) parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) diff --git a/rubocop-shopify.gemspec b/rubocop-shopify.gemspec index f0edcdcb..cde72495 100644 --- a/rubocop-shopify.gemspec +++ b/rubocop-shopify.gemspec @@ -3,7 +3,7 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = "rubocop-shopify" - s.version = "2.5.0" + s.version = "2.6.0" s.summary = "Shopify's style guide for Ruby." s.description = "Gem containing the rubocop.yml config that corresponds to "\ "the implementation of the Shopify's style guide for Ruby." diff --git a/test/fixtures/full_config.yml b/test/fixtures/full_config.yml index e5deb3c0..7121e272 100644 --- a/test/fixtures/full_config.yml +++ b/test/fixtures/full_config.yml @@ -582,7 +582,7 @@ Layout/HeredocArgumentClosingParenthesis: StyleGuide: "#heredoc-argument-closing-parentheses" VersionAdded: '0.68' Layout/HeredocIndentation: - Description: This cop checks the indentation of the here document bodies. + Description: Checks the indentation of the here document bodies. StyleGuide: "#squiggly-heredocs" Enabled: true VersionAdded: '0.49' @@ -1040,7 +1040,7 @@ Lint/BigDecimalNew: Enabled: true VersionAdded: '0.53' Lint/BinaryOperatorWithIdenticalOperands: - Description: This cop checks for places where binary operator has identical operands. + Description: Checks for places where binary operator has identical operands. Enabled: true Safe: false VersionAdded: '0.89' @@ -1188,7 +1188,7 @@ Lint/ElseLayout: VersionAdded: '0.17' VersionChanged: '1.2' Lint/EmptyBlock: - Description: This cop checks for blocks without a body. + Description: Checks for blocks without a body. Enabled: false VersionAdded: '1.1' VersionChanged: '1.15' @@ -1200,8 +1200,8 @@ Lint/EmptyClass: VersionAdded: '1.3' AllowComments: false Lint/EmptyConditionalBody: - Description: This cop checks for the presence of `if`, `elsif` and `unless` branches - without a body. + Description: Checks for the presence of `if`, `elsif` and `unless` branches without + a body. Enabled: false AllowComments: true VersionAdded: '0.89' @@ -1340,8 +1340,8 @@ Lint/MissingCopEnableDirective: VersionAdded: '0.52' MaximumRangeSize: .inf Lint/MissingSuper: - Description: This cop checks for the presence of constructors and lifecycle callbacks - without calls to `super`. + Description: Checks for the presence of constructors and lifecycle callbacks without + calls to `super`. Enabled: true VersionAdded: '0.89' VersionChanged: '1.4' @@ -1609,8 +1609,8 @@ Lint/Syntax: Enabled: true VersionAdded: '0.9' Lint/ToEnumArguments: - Description: This cop ensures that `to_enum`/`enum_for`, called for the current - method, has correct arguments. + Description: Ensures that `to_enum`/`enum_for`, called for the current method, has + correct arguments. Enabled: false VersionAdded: '1.1' Lint/ToJSON: @@ -1618,11 +1618,11 @@ Lint/ToJSON: Enabled: false VersionAdded: '0.66' Lint/TopLevelReturnWithArgument: - Description: This cop detects top level return statements with argument. + Description: Detects top level return statements with argument. Enabled: false VersionAdded: '0.89' Lint/TrailingCommaInAttributeDeclaration: - Description: This cop checks for trailing commas in attribute declarations. + Description: Checks for trailing commas in attribute declarations. Enabled: false VersionAdded: '0.90' Lint/TripleQuotes: @@ -1666,7 +1666,7 @@ Lint/UnreachableCode: Enabled: true VersionAdded: '0.9' Lint/UnreachableLoop: - Description: This cop checks for loops that will have at most one iteration. + Description: Checks for loops that will have at most one iteration. Enabled: false VersionAdded: '0.89' VersionChanged: '1.7' @@ -2285,8 +2285,8 @@ Style/CaseEquality: VersionChanged: '0.89' AllowOnConstant: true Style/CaseLikeIf: - Description: This cop identifies places where `if-elsif` constructions can be replaced - with `case-when`. + Description: Identifies places where `if-elsif` constructions can be replaced with + `case-when`. StyleGuide: "#case-vs-if-else" Enabled: false Safe: false @@ -2614,7 +2614,7 @@ Style/ExponentialNotation: - engineering - integral Style/FetchEnvVar: - Description: This cop suggests `ENV.fetch` for the replacement of `ENV[]`. + Description: Suggests `ENV.fetch` for the replacement of `ENV[]`. Reference: - https://rubystyle.guide/#hash-fetch-defaults Enabled: false @@ -3083,9 +3083,8 @@ Style/NegatedIf: - prefix - postfix Style/NegatedIfElseCondition: - Description: This cop checks for uses of `if-else` and ternary operators with a - negated condition which can be simplified by inverting condition and swapping - branches. + Description: Checks for uses of `if-else` and ternary operators with a negated condition + which can be simplified by inverting condition and swapping branches. Enabled: false VersionAdded: '1.2' Style/NegatedUnless: @@ -3525,9 +3524,9 @@ Style/ReturnNil: - return_nil VersionAdded: '0.50' Style/SafeNavigation: - Description: This cop transforms usages of a method call safeguarded by a check - for the existence of the object to safe navigation (`&.`). Auto-correction is - unsafe as it assumes the object will be `nil` or truthy, but never `false`. + Description: Transforms usages of a method call safeguarded by a check for the existence + of the object to safe navigation (`&.`). Auto-correction is unsafe as it assumes + the object will be `nil` or truthy, but never `false`. Enabled: true VersionAdded: '0.43' VersionChanged: '1.27' @@ -3712,7 +3711,7 @@ Style/StructInheritance: VersionAdded: '0.29' VersionChanged: '1.20' Style/SwapValues: - Description: This cop enforces the use of shorthand-style swapping of 2 variables. + Description: Enforces the use of shorthand-style swapping of 2 variables. StyleGuide: "#values-swapping" Enabled: false VersionAdded: '1.1' @@ -3755,7 +3754,7 @@ Style/TernaryParentheses: - require_parentheses_when_complex AllowSafeAssignment: true Style/TopLevelMethodDefinition: - Description: This cop looks for top-level method definitions. + Description: Looks for top-level method definitions. StyleGuide: "#top-level-methods" Enabled: false VersionAdded: '1.15'