Bump rubocop from 0.76.0 to 1.3.0
Bumps rubocop from 0.76.0 to 1.3.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.3
New features
- #8761: Read
required_ruby_version
from gemspec file if it exists. (@HeroProtagonist)- #9001: Add new
Lint/EmptyClass
cop. (@fatkodima)- #9025: Add
AllowedMethods
option toLint/ConstantDefinitionInBlock
. (@koic)- #9014: Support auto-correction for
Style/IfInsideElse
. (@koic)- #8483: Add new
Style/StaticClass
cop. (@fatkodima)- #9020: Add new
Style/NilLambda
cop to check for lambdas that always return nil. (@dvandersluis)- #8404: Add new
Lint/DuplicateBranch
cop. (@fatkodima)Bug fixes
- #8499: Fix
Style/IfUnlessModifier
andStyle/WhileUntilModifier
to prevent an offense if there are both first-line comment and code afterend
block. (@dsavochkin)- #8996: Fix a false positive for
Style/MultipleComparison
when comparing two sides of the disjunction is unrelated. (@koic)- #8975: Fix an infinite loop when autocorrecting
Layout/TrailingWhitespace
+Lint/LiteralInInterpolation
. (@fatkodima)- #8998: Fix an error for
Style/NegatedIfElseCondition
when using negated condition andif
branch body is empty. (@koic)- #9008: Mark
Style/InfiniteLoop
as unsafe. (@marcandre)Changes
- #8978: Update
Layout/LineLength
autocorrection to be able to handle method calls with long argument lists. (@dvandersluis)- #9015: Update
Lint/EmptyBlock
to allow for empty lambdas. (@dvandersluis)- #9022: Add
NOTE
to keywords ofStyle/CommentAnnotation
. (@koic)- #9011: Mark autocorrection for
Lint/Loop
as unsafe. (@dvandersluis)- #9026: Update
Style/DocumentDynamicEvalDefinition
to detect comment blocks that document the evaluation. (@dvandersluis)- #9004: Remove obsolete gem
SafeYAML
compatibility. (@marcandre)- #9023: Mark unsafe for
Style/CollectionCompact
. (@koic)- #9012: Allow
AllowedIdentifiers
to be specified forNaming/VariableNumber
. (@dvandersluis)RuboCop 1.2
New features
... (truncated)
- #8983: Support auto-correction for
Naming/HeredocDelimiterCase
. (@koic)- #8004: Add new
GitHubActionsFormatter
formatter. ([@lautis][])- #8175: Add new
AllowedCompactTypes
option forStyle/RaiseArgs
. ([@pdobb][])- #8566: Add new
Style/CollectionCompact
cop. (@fatkodima)- #8925: Add
--display-time
option for displaying elapsed time ofrubocop
command. ([@joshuapinter][])- #8967: Add new
Style/NegatedIfElseCondition
cop. (@fatkodima)- #8984: Support auto-correction for
Style/DoubleNegation
. (@koic)- #8992: Support auto-correction for
Lint/ElseLayout
. (@koic)- #8988: Support auto-correction for
Lint/UselessSetterCall
. (@koic)- #8982: Support auto-correction for
Naming/BinaryOperatorParameterName
. (@koic)
Changelog
Sourced from rubocop's changelog.
1.3.0 (2020-11-12)
New features
- #8761: Read
required_ruby_version
from gemspec file if it exists. ([@HeroProtagonist][])- #9001: Add new
Lint/EmptyClass
cop. ([@fatkodima][])- #9025: Add
AllowedMethods
option toLint/ConstantDefinitionInBlock
. ([@koic][])- #9014: Support auto-correction for
Style/IfInsideElse
. ([@koic][])- #8483: Add new
Style/StaticClass
cop. ([@fatkodima][])- #9020: Add new
Style/NilLambda
cop to check for lambdas that always return nil. ([@dvandersluis][])- #8404: Add new
Lint/DuplicateBranch
cop. ([@fatkodima][])Bug fixes
- #8499: Fix
Style/IfUnlessModifier
andStyle/WhileUntilModifier
to prevent an offense if there are both first-line comment and code afterend
block. ([@dsavochkin][])- #8996: Fix a false positive for
Style/MultipleComparison
when comparing two sides of the disjunction is unrelated. ([@koic][])- #8975: Fix an infinite loop when autocorrecting
Layout/TrailingWhitespace
+Lint/LiteralInInterpolation
. ([@fatkodima][])- #8998: Fix an error for
Style/NegatedIfElseCondition
when using negated condition andif
branch body is empty. ([@koic][])- #9008: Mark
Style/InfiniteLoop
as unsafe. ([@marcandre][])Changes
- #8978: Update
Layout/LineLength
autocorrection to be able to handle method calls with long argument lists. ([@dvandersluis][])- #9015: Update
Lint/EmptyBlock
to allow for empty lambdas. ([@dvandersluis][])- #9022: Add
NOTE
to keywords ofStyle/CommentAnnotation
. ([@koic][])- #9011: Mark autocorrection for
Lint/Loop
as unsafe. ([@dvandersluis][])- #9026: Update
Style/DocumentDynamicEvalDefinition
to detect comment blocks that document the evaluation. ([@dvandersluis][])- #9004: Remove obsolete gem
SafeYAML
compatibility. ([@marcandre][])- #9023: Mark unsafe for
Style/CollectionCompact
. ([@koic][])- #9012: Allow
AllowedIdentifiers
to be specified forNaming/VariableNumber
. ([@dvandersluis][])1.2.0 (2020-11-05)
New features
- #8983: Support auto-correction for
Naming/HeredocDelimiterCase
. ([@koic][])- #8004: Add new
GitHubActionsFormatter
formatter. ([@lautis][])- #8175: Add new
AllowedCompactTypes
option forStyle/RaiseArgs
. ([@pdobb][])- #8566: Add new
Style/CollectionCompact
cop. ([@fatkodima][])- #8925: Add
--display-time
option for displaying elapsed time ofrubocop
command. ([@joshuapinter][])- #8967: Add new
Style/NegatedIfElseCondition
cop. ([@fatkodima][])- #8984: Support auto-correction for
Style/DoubleNegation
. ([@koic][])- #8992: Support auto-correction for
Lint/ElseLayout
. ([@koic][])- #8988: Support auto-correction for
Lint/UselessSetterCall
. ([@koic][])- #8982: Support auto-correction for
Naming/BinaryOperatorParameterName
. ([@koic][])Bug fixes
... (truncated)
Commits
-
922d7af
Cut 1.3 -
195656b
Update Changelog -
131e4c3
Only report offenses as correctable ifLayout/LineLength
actually can corre... -
b322bc7
[Fix #8978] UpdateLayout/LineLength
autocorrection to be able to handle me... -
1959d31
[Fix #9026] UpdateStyle/DocumentDynamicEvalDefinition
to detect comment bl... -
d6ec7a7
Fix formatting in CONTRIBUTING.md. -
e299edd
[Fix #9011] Mark autocorrection forLint/Loop
as unsafe. -
a7a7eef
Add newStyle/NilLambda
cop to check for lambdas that always return nil. -
406243e
[Fix #9025] AddAllowedMethods
toLint/ConstantDefinitionInBlock
-
28649d7
[Fix #9015] UpdateLint/EmptyBlock
to allow for empty lambdas. - Additional commits viewable in compare view