Bump rubocop from 1.26.1 to 1.48.0 by dependabot[bot] · Pull Request #100 · jsdeveloperpro/explore
Bumps rubocop from 1.26.1 to 1.48.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.48
New features
Bug fixes
- #11654: Fix a false positive for
Lint/MissingSuperwhen nosupercall and when defining some method. (@koic)- #11661: Fix an error for
Style/Documentationwhen namespace is a variable. (@koic)- #11647: Fix an error for
Style/IfWithBooleanLiteralBrancheswhen using()as a condition. (@koic)- #11646: Fix an error for
Style/NegatedIfElseConditionwhen using()as a condition. (@koic)- #11659: Fix an incorrect autocorrect for
Lint/OrAssignmentToConstantwhen using or-assignment to a constant in method definition. (@koic)- #11663: Fix an incorrect autocorrect for
Style/BlockDelimiterswhen multi-line blocks to{and}with arithmetic operation method chain. (@koic)- #11638: Fix a false positive for
Lint/UselessAccessModifierwhen using same access modifier inside and outside theincludedblock. (@ydah)- #11164: Suppress server mode message with
-f json. (@jasondoc3)- #11643: Fix incorrect shorthand autocorrections in calls inside parentheses. (
@gsamokovarov)- #11650:
Style/AccessorGrouping: Fix detection of Sorbetsig {}blocks. (@issyl0)- #11657: Use cop name to check if cop inside registry is enabled. Previously, it was able to cause large memory usage during linting. (
@fatkodima)Changes
- #11482: Avoid comment deletion by
Style/IfUnlessModifierwhen the modifier form expression has long comment. (@nobuyo)- #11649: Support
MinBranchesCountconfig forStyle/CaseLikeIfcop. (@fatkodima)RuboCop 1.47
New features
- #11475: Add autocorrect for hash in
Lint/LiteralInInterpolation. ([@KessaPassa][])- #11584: Add
Metrics/CollectionLiteralLengthcop. ([@sambostock][])Bug fixes
- #11615: Fix a false negative for
Lint/MissingSuperwhen nosupercall withClass.newblock. (@koic)- #11615: Fix a false negative for
Lint/MissingSuperwhen usingClass.newwithout parent class argument. (@koic)- #11040: Fix a false positive for
Style/IfUnlessModifierwhendefined?'s argument value is undefined. (@koic)- #11607: Fix a false positive for
Style/RedundantRegexpEscapewhen an escaped hyphen follows after an escaped opening square bracket within a character class. ([@SparLaimor][])- #11626: Fix a false positive for
Style/ZeroLengthPredicatewhen usingFile.new(path).size.zero?. (@koic)- #11620: Fix an error for
Lint/ConstantResolutionwhen using__ENCODING__. (@koic)- #11625: Fix an error for
Lint/EmptyConditionalBodywhen missingifbody and using method call for return value. (@koic)- #11631: Fix an incorrect autocorrect for
Style/ArgumentsForwardingwhen using arguments forwarding for.()call. (@koic)- #11621: Fix an incorrect autocorrect for
Layout/ClassStructureusing heredoc inside method. (@fatkodima)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.48.0 (2023-03-06)
New features
Bug fixes
- #11654: Fix a false positive for
Lint/MissingSuperwhen nosupercall and when defining some method. ([@koic][])- #11661: Fix an error for
Style/Documentationwhen namespace is a variable. ([@koic][])- #11647: Fix an error for
Style/IfWithBooleanLiteralBrancheswhen using()as a condition. ([@koic][])- #11646: Fix an error for
Style/NegatedIfElseConditionwhen using()as a condition. ([@koic][])- #11659: Fix an incorrect autocorrect for
Lint/OrAssignmentToConstantwhen using or-assignment to a constant in method definition. ([@koic][])- #11663: Fix an incorrect autocorrect for
Style/BlockDelimiterswhen multi-line blocks to{and}with arithmetic operation method chain. ([@koic][])- #11638: Fix a false positive for
Lint/UselessAccessModifierwhen using same access modifier inside and outside theincludedblock. ([@ydah][])- #11164: Suppress server mode message with
-f json. ([@jasondoc3][])- #11643: Fix incorrect shorthand autocorrections in calls inside parentheses. ([
@gsamokovarov][])- #11650:
Style/AccessorGrouping: Fix detection of Sorbetsig {}blocks. ([@issyl0][])- #11657: Use cop name to check if cop inside registry is enabled. Previously, it was able to cause large memory usage during linting. ([
@fatkodima][])Changes
- #11482: Avoid comment deletion by
Style/IfUnlessModifierwhen the modifier form expression has long comment. ([@nobuyo][])- #11649: Support
MinBranchesCountconfig forStyle/CaseLikeIfcop. ([@fatkodima][])1.47.0 (2023-03-01)
New features
- #11475: Add autocorrect for hash in
Lint/LiteralInInterpolation. ([@KessaPassa][])- #11584: Add
Metrics/CollectionLiteralLengthcop. ([@sambostock][])Bug fixes
- #11615: Fix a false negative for
Lint/MissingSuperwhen nosupercall withClass.newblock. ([@koic][])- #11615: Fix a false negative for
Lint/MissingSuperwhen usingClass.newwithout parent class argument. ([@koic][])- #11040: Fix a false positive for
Style/IfUnlessModifierwhendefined?'s argument value is undefined. ([@koic][])- #11607: Fix a false positive for
Style/RedundantRegexpEscapewhen an escaped hyphen follows after an escaped opening square bracket within a character class. ([@SparLaimor][])- #11626: Fix a false positive for
Style/ZeroLengthPredicatewhen usingFile.new(path).size.zero?. ([@koic][])- #11620: Fix an error for
Lint/ConstantResolutionwhen using__ENCODING__. ([@koic][])- #11625: Fix an error for
Lint/EmptyConditionalBodywhen missingifbody and using method call for return value. ([@koic][])- #11631: Fix an incorrect autocorrect for
Style/ArgumentsForwardingwhen using arguments forwarding for.()call. ([@koic][])- #11621: Fix an incorrect autocorrect for
Layout/ClassStructureusing heredoc inside method. ([@fatkodima][])- #3591: Handle modifier
whileanduntilexpressions inLint/UselessAssignment. ([@bfad][])- #11202: Fixed usage of
--onlyflag with--auto-gen-config. ([@istvanfazakas][])Changes
... (truncated)
Commits
8d32826Cut 1.4836cc776Update Changelogaf8b5f9[Fix #11164] Suppress server mode message with -f json (#11668)8257ff2[Fix #11629] Add newStyle/FileEmptycopf23e487Cacheclassname_attribute_valuein junit formatter0499a58[Fix #11628] Add newStyle/DirEmptycopf982aa8[Fix #11663] Fix an incorrect autocorrect forStyle/BlockDelimitersd8f6765Merge pull request #11665 from fatkodima/registry-enabled-cop-name118542bMerge pull request #11638 from ydah/fix-lint_useless_access_modifier0d3c056Fix a false positive forLint/UselessAccessModifierwhen using same access ...- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)