Bump rubocop from 0.76.0 to 1.3.1
Bumps rubocop from 0.76.0 to 1.3.1.
Release notes
Sourced from rubocop's releases.
RuboCop 1.3.1
Bug fixes
- #9037: Fix
required_ruby_version
issue when usingGem::Requirement
. (@cetinajero)- #9039: Fix stack level too deep error if target directory contains
**
. (@unasuke)- #6962: Limit
Layout/ClassStructure
constant order autocorrect to literal constants. (@tejasbubane)- #9032: Fix an error for
Style/DocumentDynamicEvalDefinition
when using eval-type method with interpolated string that is not heredoc without comment doc. (@koic)- #9049: Have
Lint/ToEnumArguments
accept__callee__
. (@marcandre)- #9050: Fix a false positive for
Style/NegatedIfElseCondition
whenif
with!!
condition. (@koic)- #9041: Fix a false positive for
Naming/VariableNumber
when using integer symbols. (@koic)Changes
- #9045: Have
cut_release
handle "config/default" and generate cops doc. (@marcandre)- #9036: Allow
enums
method by default forLint/ConstantDefinitionInBlock
. (@koic)- #9035: Only complain about
SafeYAML
if it causes issues. (@marcandre)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
... (truncated)
- #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)
Changelog
Sourced from rubocop's changelog.
1.3.1 (2020-11-16)
Bug fixes
- #9037: Fix
required_ruby_version
issue when usingGem::Requirement
. ([@cetinajero][])- #9039: Fix stack level too deep error if target directory contains
**
. ([@unasuke][])- #6962: Limit
Layout/ClassStructure
constant order autocorrect to literal constants. ([@tejasbubane][])- #9032: Fix an error for
Style/DocumentDynamicEvalDefinition
when using eval-type method with interpolated string that is not heredoc without comment doc. ([@koic][])- #9049: Have
Lint/ToEnumArguments
accept__callee__
. ([@marcandre][])- #9050: Fix a false positive for
Style/NegatedIfElseCondition
whenif
with!!
condition. ([@koic][])- #9041: Fix a false positive for
Naming/VariableNumber
when using integer symbols. ([@koic][])Changes
- #9045: Have
cut_release
handle "config/default" and generate cops doc. ([@marcandre][])- #9036: Allow
enums
method by default forLint/ConstantDefinitionInBlock
. ([@koic][])- #9035: Only complain about
SafeYAML
if it causes issues. ([@marcandre][])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)
... (truncated)
Commits
-
ad62ad9
Cut 1.3.1 -
eaa49f7
Update Changelog -
9ed12d5
Move a changelog entry -
a76a2a4
LimitLayout/ClassStructure
constant order autocorrect to literal constants -
51fa5bf
Merge pull request #9054 from koic/drop_patch_versions_from_default_yml -
c3c7283
Remove redundant patch version from default.yml -
ee6a72f
Merge pull request #9051 from koic/fix_false_negative_for_negated_if_else_con... -
06eec86
[Fixes #9049] HaveLint/ToEnumArguments
accept__callee__
-
c5b9552
[Fix #9050] Fix a false positive forStyle/NegatedIfElseCondition
-
1905f1b
Havecut_release
handle "config/default" and generate cops doc. - Additional commits viewable in compare view