miscreant.rb
miscreant.rb copied to clipboard
build(deps-dev): update rubocop requirement from 0.79.0 to 1.9.0
Updates the requirements on rubocop to permit the latest version.
Release notes
Sourced from rubocop's releases.
RuboCop 1.9
New features
- #9396: Add new
Style/IfWithBooleanLiteralBranches
cop. (@koic
)- #9402: Add new
Lint/TripleQuotes
cop. (@dvandersluis
)- #7827: Add pre-commit hook. (
@jdufresne
,@adithyabsk
)- #7452: Support
IgnoredMethods
option forStyle/FormatStringToken
. (@koic
)- #9340: Added
info
Severity level to allow offenses to be listed but not return a non-zero error code. (@dvandersluis
)- #9353: Add new
Lint/SymbolConversion
cop. (@dvandersluis
)- #9363: Add new cop
Lint/OrAssignmentToConstant
. (@uplus
)- #9326: Add new
Lint/NumberedParameterAssignment
cop. (@koic
)Bug fixes
- #9366: Fix an incorrect auto-correct for
Style/SoleNestedConditional
when using method arguments without parentheses for outer condition. (@koic
)- #9372: Fix an error for
Style/IfInsideElse
when nestedif
branch code is empty. (@koic
)- #9374: Fix autocorrection for
Layout/LineLength
when the first argument to a send node is a overly long hash pair. (@dvandersluis
)- #9387: Fix incorrect auto-correct for
Style/NilComparison
when using!x.nil?
andEnforcedStyle: comparison
. (@koic
)- #9411: Fix false negatives for
Style/EvalWithLocation
forKernel.eval
and when given improper arguments. (@dvandersluis
)- #7766: Fix
Naming/RescuedExceptionsVariableName
autocorrection when the rescue body returns the exception variable. (@asterite
)- #7766: Fix
Naming/RescuedExceptionsVariableName
autocorrection to not change variables if the exception variable has been reassigned. (@dvandersluis
)- #9389: Fix an infinite loop error for
IncludeSemanticChanges: false
ofStyle/NonNilCheck
withEnforcedStyle: comparison
ofStyle/NilComparison
. (@koic
)- #9384: Fix a suggestion message when not auto-correctable. (
@koic
)- #9424: Fix an incorrect auto-correct for
Style/ClassMethodsDefinitions
when defining class methods withclass << self
and there is no blank line between method definition and attribute accessor. (@koic
)- #9370: Fix an incorrect auto-correct for
Style/SoleNestedConditional
when using nestedunless
modifier multiple conditional. (@koic
)- #9406: Fix rubocop_todo link injection when YAML doc start sigil exists. (
@dduugg
)- #9229: Fix errors being reported with
rubocop -V
with an invalid config. (@dvandersluis
)- #9425: Fix error in
Layout/ClassStructure
when initializer comes after private attribute macro. (@tejasbubane
)Changes
- #9415: Change
Layout/ClassStructure
to detect inline modifiers. (@AndreiEres
)- #9380: Mark
Style/FloatDivision
as unsafe. (@koic
)- #9345: Make
Style/AsciiComments
allow copyright notice by default. (@koic
)- #9399: Added
AllowedCops
configuration toStyle/DisableCopsWithinSourceCodeDirective
. (@dvandersluis
)- #9327: Change
Layout/EmptyLineAfterMagicComment
to accept top-levelshareable_constant_values
directive. (@tejasbubane
)- #7902: Change
Lint/NumberConversion
to detect symbol form of conversion methods. (@tejasbubane
)
Changelog
Sourced from rubocop's changelog.
1.9.0 (2021-01-28)
New features
- #9396: Add new
Style/IfWithBooleanLiteralBranches
cop. ([@koic
][])- #9402: Add new
Lint/TripleQuotes
cop. ([@dvandersluis
][])- #7827: Add pre-commit hook. ([
@jdufresne
][], [@adithyabsk
][])- #7452: Support
IgnoredMethods
option forStyle/FormatStringToken
. ([@koic
][])- #9340: Added
info
Severity level to allow offenses to be listed but not return a non-zero error code. ([@dvandersluis
][])- #9353: Add new
Lint/SymbolConversion
cop. ([@dvandersluis
][])- #9363: Add new cop
Lint/OrAssignmentToConstant
. ([@uplus
][])- #9326: Add new
Lint/NumberedParameterAssignment
cop. ([@koic
][])Bug fixes
- #9366: Fix an incorrect auto-correct for
Style/SoleNestedConditional
when using method arguments without parentheses for outer condition. ([@koic
][])- #9372: Fix an error for
Style/IfInsideElse
when nestedif
branch code is empty. ([@koic
][])- #9374: Fix autocorrection for
Layout/LineLength
when the first argument to a send node is a overly long hash pair. ([@dvandersluis
][])- #9387: Fix incorrect auto-correct for
Style/NilComparison
when using!x.nil?
andEnforcedStyle: comparison
. ([@koic
][])- #9411: Fix false negatives for
Style/EvalWithLocation
forKernel.eval
and when given improper arguments. ([@dvandersluis
][])- #7766: Fix
Naming/RescuedExceptionsVariableName
autocorrection when the rescue body returns the exception variable. ([@asterite
][])- #7766: Fix
Naming/RescuedExceptionsVariableName
autocorrection to not change variables if the exception variable has been reassigned. ([@dvandersluis
][])- #9389: Fix an infinite loop error for
IncludeSemanticChanges: false
ofStyle/NonNilCheck
withEnforcedStyle: comparison
ofStyle/NilComparison
. ([@koic
][])- #9384: Fix a suggestion message when not auto-correctable. ([
@koic
][])- #9424: Fix an incorrect auto-correct for
Style/ClassMethodsDefinitions
when defining class methods withclass << self
and there is no blank line between method definition and attribute accessor. ([@koic
][])- #9370: Fix an incorrect auto-correct for
Style/SoleNestedConditional
when using nestedunless
modifier multiple conditional. ([@koic
][])- #9406: Fix rubocop_todo link injection when YAML doc start sigil exists. ([
@dduugg
][])- #9229: Fix errors being reported with
rubocop -V
with an invalid config. ([@dvandersluis
][])- #9425: Fix error in
Layout/ClassStructure
when initializer comes after private attribute macro. ([@tejasbubane
][])Changes
- #9415: Change
Layout/ClassStructure
to detect inline modifiers. ([@AndreiEres
][])- #9380: Mark
Style/FloatDivision
as unsafe. ([@koic
][])- #9345: Make
Style/AsciiComments
allow copyright notice by default. ([@koic
][])- #9399: Added
AllowedCops
configuration toStyle/DisableCopsWithinSourceCodeDirective
. ([@dvandersluis
][])- #9327: Change
Layout/EmptyLineAfterMagicComment
to accept top-levelshareable_constant_values
directive. ([@tejasbubane
][])- #7902: Change
Lint/NumberConversion
to detect symbol form of conversion methods. ([@tejasbubane
][])1.8.1 (2021-01-11)
Bug fixes
- #9342: Fix an error for
Lint/RedundantDirGlobSort
when usingcollection.sort
. ([@koic
][])- #9304: Do not register an offense for
Style/ExplicitBlockArgument
when theyield
arguments are not an exact match with the block arguments. ([@dvandersluis
][])- #8281: Fix Style/WhileUntilModifier handling comments and assignment when correcting to modifier form. ([
@Darhazer
][])- #8229: Fix faulty calculation in UncommunicativeName. ([
@ohbarye
][])- #9350: Wrap in parens before replacing
unless
withif
and!
. ([@magneland
][])- #9356: Fix duplicate extension cop versions when using
rubocop -V
. ([@koic
][])- #9355: Fix
Style/SingleLineMethods
autocorrection to endless method when the original code had parens. ([@dvandersluis
][])
... (truncated)
Commits
c95412e
Cut 1.9.0bd20cc7
Update Changelog160e5df
Fix an incorrect auto-correct forStyle/ClassMethodsDefinitions
ad85a55
Add newInternalAffairs/RedundantLetRuboCopConfigNew
cope916e9a
Merge pull request #9426 from tejasbubane/fix-942539b9f82
[Fix #9425] Fix error inLayout/ClassStructure
when initializer comes after...4356728
Fix false negatives forStyle/EvalWithLocation
forKernel.eval
and when g...1f7d2d2
[Fix #9415] ChangeLayout/ClassStructure
to detect inline modifiers9a06e84
FixInternalAffairs/ExampleDescription
offenses.c37b550
Add newInternalAffairs/ExampleDescription
cop.- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language -
@dependabot badge me
will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)