Update dependency rubocop-shopify to "~> 2.15.0" #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
"~> 2.3.0"
->"~> 2.15.0"
Release Notes
Shopify/ruby-style-guide (rubocop-shopify)
v2.15.1
Compare Source
What's Changed
Bug fixes
2.15.1
by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/615This should fix the
cannot load such file -- rubocop/shopify/gem_version_string_comparable_backport
error present inv2.15.0
.Full Changelog: Shopify/ruby-style-guide@v2.15.0...v2.15.1
v2.15.0
Compare Source
What's Changed
Enabled Cops
Layout/LineContinuationLeadingSpace
(#585)Layout/LineContinuationSpacing
(#585)Lint/ItWithoutArgumentsInBlock
(#593)Lint/LiteralAssignmentInCondition
(#593)Lint/MixedCaseRange
(#550)Lint/RedundantRegexpQuantifiers
(#550)Style/EndlessMethod
(#577)Style/IfWithBooleanLiteralBranches
(#551)Style/RedundantArrayConstructor
(#544)Style/RedundantCurrentDirectoryInPath
(#550)Style/RedundantFilterChain
(#544)Style/RedundantRegexpArgument
(#550)Style/RedundantRegexpConstructor
(#544)Style/ReturnNilInPredicateMethodDefinition
(#550)Style/SingleLineDoEndBlock
(#582)Style/SuperWithArgsParentheses
(#593)Style/YAMLFileRead
(#550)Changed Cops
Naming/InclusiveLanguage
'sAllowedRegex
is changed to permit any unbroken word which includesmaster
. (#564)The motivation for this change is to avoid continuously needing to add exclusions such as
mastercard
,remaster
, etc. to the list, while still allowing the cop to catch problematic uses of the wordmaster
.Style/FrozenStringLiteralComment
'sEnforcedStyle
is changed fromalways
toalways_true
. (#589)Consumers should aim to use
frozen_string_literal: true
in all files, but if certain files needfrozen_string_literal: false
, they should disable the cop in those files, mark them as TODO, or add them to theExclude
list.Changed
AllCops
ConfigurationNewCops
is changed fromenable
todisable
. (#581)This silences the warning about pending cops for consumers, as the style guide maintainers will triage them instead.
Minimum RuboCop Version
Despite enabling new cops, the minimum RuboCop version is unchanged from the previous release, and remains
1.51.0
.Details
This is possible due to the new approach taken in
rubocop.yml
, in which ERB is used to conditionally enable cops based on the RuboCop version. (#582, #593, #612)The motivation for this is to try the approach ahead of
rubocop-shopify
including optional configuration forrubocop-*
extensions, which would need to work without adding dependencies on the extensions, or their versions.Relevant PRs
Style/IfWithBooleanLiteralBranches
by @nvasilevski in https://github.com/Shopify/ruby-style-guide/pull/551frozen_string_literal: true
by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/589~> 1.51
by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/612New Contributors
Full Changelog: Shopify/ruby-style-guide@v2.14.0...v2.15.0
v2.14.0
Compare Source
What's Changed
Enabled Cops
Style/ReturnNil
(#529)Lint/NoReturnInBeginEndBlocks
(#545)Changed Cops
Naming/InclusiveLanguage
AllowedRegex
to allow more git repository links (#535)Minimum Rubocop Version
The minimum Rubocop version is now 1.51.0 (https://github.com/Shopify/ruby-style-guide/pull/541).
Relevant PRs
Naming/InclusiveLanguage
AllowedRegex
by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/535New Contributors
Full Changelog: Shopify/ruby-style-guide@v2.13.0...v2.14.0
v2.13.0
Compare Source
What's Changed
Enabled Cops
The following cops have been enabled:
Lint/DuplicateMatchPattern
(#525)Metrics/CollectionLiteralLength
(#510)Style/DataInheritance
(#524)Style/DirEmpty
(#510)Style/FileEmpty
(#510)Style/RedundantHeredocDelimiterQuotes
(#497)Style/RedundantLineContinuation
(#524)Changed Cops
Layout/LineLength
now allows inline# rubocop:disable ...
comments to exceed the line length. (#488)Layout/LineLength
now allowsdef test_...
lines to exceed the line length limit, making it consistent withtest "..." do
lines, which were already permitted to exceed the limit. (#496)Naming/MethodName
now allows methods starting withtest_
to violate thesnake_case
convention. (#511)Style/AndOr
now allowsand
andor
outside of conditionals (which must still use&&
and||
instead). (#515)Minimum Rubocop Version
The minimum Rubocop version is now
1.50.0
(#525).Relevant PRs
def test_...
lines to be long by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/496test_
method names to violatesnake_case
by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/511New Contributors
Full Changelog: Shopify/ruby-style-guide@v2.12.0...v2.13.0
v2.12.0
Compare Source
What's Changed
Enabled Cops
The following cops have been enabled:
Lint/UselessRescue
(#486)Style/ArrayIntersect
(#487)Style/ComparableClamp
(#486)Style/InvertibleUnlessCondition
(#486)Style/OperatorMethodCall
Disabled Cops
The following cops have been disabled:
Gemspec/DevelopmentDependencies
(#486)Minimum Rubocop Version
The minimum
rubocop
version is now1.44
. (#486)Full Changelog: Shopify/ruby-style-guide@v2.11.1...v2.12.0
v2.11.1
Compare Source
Style/OperatorMethodCall
rule by @Korri in https://github.com/Shopify/ruby-style-guide/pull/474(The autocorrect would introduce syntax errors in some edge cases.)
v2.11.0
Compare Source
What's Changed
rubocop
1.42.0 (https://github.com/Shopify/ruby-style-guide/pull/467)Style/NumericLiteralPrefix
'sEnforcedOctalStyle
tozero_with_o
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/442Style/MinMaxComparison
by @Korri in https://github.com/Shopify/ruby-style-guide/pull/467Lint/DuplicateMagicComment
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/452Style/OperatorMethodCall
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/452Style/RedundantStringEscape
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/452Style/RedundantEach
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/457Style/ConcatArrayLiterals
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/465Style/RedundantConstantBase
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/465Style/RedundantDoubleSplatHashBraces
by @sambostock https://github.com/Shopify/ruby-style-guide/pull/465Full Changelog: Shopify/ruby-style-guide@v2.10.1...v2.11.0
v2.10.1
Compare Source
Full Changelog: Shopify/ruby-style-guide@v2.10.0...v2.10.1
v2.10.0
: 2.10.0Compare Source
What's Changed
Full Changelog: Shopify/ruby-style-guide@v2.9.0...v2.10.0
v2.9.0
: 2.9.0Compare Source
What's Changed
Style/ClassMethodsDefinitions
with styleself_class
in (https://github.com/Shopify/ruby-style-guide/pull/422)New Contributors
Full Changelog: Shopify/ruby-style-guide@v2.8.0...v2.9.0
v2.8.0
: 2.8.0Compare Source
What's Changed
Lint/ConstantOverwrittenInRescue
.Full Changelog: Shopify/ruby-style-guide@v2.7.1...v2.8.0
v2.7.1
: 2.7.1Compare Source
What's Changed
Non consumer facing change omitted.
New Contributors
Full Changelog: Shopify/ruby-style-guide@v2.7.0...v2.7.1
v2.7.0
: 2.7.0Compare Source
What's Changed
Gemspec/DeprecatedAttributeAssignment
by @rafaelfranca in https://github.com/Shopify/ruby-style-guide/pull/395New Contributors
Full Changelog: Shopify/ruby-style-guide@v2.6.0...v2.7.0
v2.6.0
: 2.6.0Compare Source
What's Changed
IgnoredPatterns
config toAllowedPatterns
by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/377Note that the minimum required Rubocop version has been updated to 1.29.
Full Changelog: Shopify/ruby-style-guide@v2.5.0...v2.6.0
v2.5.0
: 2.5.0Compare Source
What's Changed
Layout/EmptyLineAfterGuardClause
cop by @sambostock in https://github.com/Shopify/ruby-style-guide/pull/348Full Changelog: Shopify/ruby-style-guide@v2.4.0...v2.5.0
v2.4.0
: 2.4.0Compare Source
What's Changed
Lint/UselessRuby2Keywords
Style/OpenStructUse
Full Changelog: Shopify/ruby-style-guide@v2.3.0...v2.4.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.