Bump rubocop from 0.76.0 to 0.88.0
Bumps rubocop from 0.76.0 to 0.88.0.
Release notes
Sourced from rubocop's releases.
RuboCop 0.88
New features
- #8279: Recognise require method passed as argument in
Lint/NonDeterministicRequireOrder
cop. (@biinari)- #7333: Add new
Style/RedundantFileExtensionInRequire
cop. (@fatkodima)- #8316: Support autocorrect for
Lint/DisjunctiveAssignmentInConstructor
cop. (@fatkodima)- #8242: Internal profiling available with
bin/rubocop-profile
and rake tasks. (@marcandre)- #8295: Add new
Style/ArrayCoercion
cop. (@fatkodima)- #8293: Add new
Lint/DuplicateElsifCondition
cop. (@fatkodima)- #7736: Add new
Style/CaseLikeIf
cop. (@fatkodima)- #4286: Add new
Style/HashAsLastArrayItem
cop. (@fatkodima)- #8247: Add new
Style/HashLikeCase
cop. (@fatkodima)- #8286: Internal method
expect_offense
allows abbreviated offense messages. (@marcandre)Bug fixes
- #8232: Fix a false positive for
Layout/EmptyLinesAroundAccessModifier
whenend
immediately after access modifier. (@koic)- #7777: Fix crash for
Layout/MultilineArrayBraceLayout
when comment is present after last element. (@shekhar-patil)- #7776: Fix crash for
Layout/MultilineMethodCallBraceLayout
when comment is present before closing braces. (@shekhar-patil)- #8282: Fix
Style/IfUnlessModifier
bad precedence detection. (@tejasbubane)- #8289: Fix
Style/AccessorGrouping
to not register offense for accessor with comment. (@tejasbubane)- #8310: Handle major version requirements in
Gemspec/RequiredRubyVersion
. (@eugeneius)- #8315: Fix crash for
Style/PercentLiteralDelimiters
when the source contains invalid characters. (@eugeneius)- #8239: Don't load
.rubocop.yml
files at all outside of the current project, unless they are personal configuration files and the project has no configuration. (@deivid-rodriguez)Changes
- #8021: Rewrite
Layout/SpaceAroundMethodCallOperator
cop to make it faster. (@fatkodima)- #8294: Add
of
toAllowedNames
ofMethodParameterName
cop. (@AlexWayfer)RuboCop 0.87.1
Bug fixes
... (truncated)
- #8252: Fix a command line option name from
--safe-autocorrect
to--safe-auto-correct
, which is compatible with RuboCop 0.86 and lower. (@koic)- #8259: Fix false positives for
Style/BisectedAttrAccessor
when accessors have different access modifiers. (@fatkodima)- #8253: Fix false positives for
Style/AccessorGrouping
when accessors have different access modifiers. (@fatkodima)- #8257: Fix an error for
Style/BisectedAttrAccessor
when usingattr_reader
andattr_writer
with splat arguments. (@fatkodima)- #8239: Don't load
.rubocop.yml
from personal folders to check for exclusions if given a custom configuration file. (@deivid-rodriguez)- #8256: Fix an error for
--auto-gen-config
when running a cop who do not support auto-correction. (@koic)- #8262: Fix
Lint/DeprecatedOpenSSLConstant
auto-correction ofOpenSSL::Cipher
to use lower case, as some Linux-based systems do not accept upper cased cipher names. ([@bdewater][])
Changelog
Sourced from rubocop's changelog.
0.88.0 (2020-07-13)
New features
- #8279: Recognise require method passed as argument in
Lint/NonDeterministicRequireOrder
cop. ([@biinari][])- #7333: Add new
Style/RedundantFileExtensionInRequire
cop. ([@fatkodima][])- #8316: Support autocorrect for
Lint/DisjunctiveAssignmentInConstructor
cop. ([@fatkodima][])- #8242: Internal profiling available with
bin/rubocop-profile
and rake tasks. ([@marcandre][])- #8295: Add new
Style/ArrayCoercion
cop. ([@fatkodima][])- #8293: Add new
Lint/DuplicateElsifCondition
cop. ([@fatkodima][])- #7736: Add new
Style/CaseLikeIf
cop. ([@fatkodima][])- #4286: Add new
Style/HashAsLastArrayItem
cop. ([@fatkodima][])- #8247: Add new
Style/HashLikeCase
cop. ([@fatkodima][])- #8286: Internal method
expect_offense
allows abbreviated offense messages. ([@marcandre][])Bug fixes
- #8232: Fix a false positive for
Layout/EmptyLinesAroundAccessModifier
whenend
immediately after access modifier. ([@koic][])- #7777: Fix crash for
Layout/MultilineArrayBraceLayout
when comment is present after last element. ([@shekhar-patil][])- #7776: Fix crash for
Layout/MultilineMethodCallBraceLayout
when comment is present before closing braces. ([@shekhar-patil][])- #8282: Fix
Style/IfUnlessModifier
bad precedence detection. ([@tejasbubane][])- #8289: Fix
Style/AccessorGrouping
to not register offense for accessor with comment. ([@tejasbubane][])- #8310: Handle major version requirements in
Gemspec/RequiredRubyVersion
. ([@eugeneius][])- #8315: Fix crash for
Style/PercentLiteralDelimiters
when the source contains invalid characters. ([@eugeneius][])- #8239: Don't load
.rubocop.yml
files at all outside of the current project, unless they are personal configuration files and the project has no configuration. ([@deivid-rodriguez][])Changes
- #8021: Rewrite
Layout/SpaceAroundMethodCallOperator
cop to make it faster. ([@fatkodima][])- #8294: Add
of
toAllowedNames
ofMethodParameterName
cop. ([@AlexWayfer][])0.87.1 (2020-07-07)
Bug fixes
- #8189: Fix an error for
Layout/MultilineBlockLayout
where spaces for a new line where not considered. ([@knejad][])- #8252: Fix a command line option name from
--safe-autocorrect
to--safe-auto-correct
, which is compatible with RuboCop 0.86 and lower. ([@koic][])- #8259: Fix false positives for
Style/BisectedAttrAccessor
when accessors have different access modifiers. ([@fatkodima][])- #8253: Fix false positives for
Style/AccessorGrouping
when accessors have different access modifiers. ([@fatkodima][])- #8257: Fix an error for
Style/BisectedAttrAccessor
when usingattr_reader
andattr_writer
with splat arguments. ([@fatkodima][])- #8239: Don't load
.rubocop.yml
from personal folders to check for exclusions if given a custom configuration file. ([@deivid-rodriguez][])- #8256: Fix an error for
--auto-gen-config
when running a cop who do not support auto-correction. ([@koic][])- #8262: Fix
Lint/DeprecatedOpenSSLConstant
auto-correction ofOpenSSL::Cipher
to use lower case, as some Linux-based systems do not accept upper cased cipher names. ([@bdewater][])0.87.0 (2020-07-06)
New features
... (truncated)
Commits
-
acddd73
Cut 0.88 -
535c544
Add a changelog entry -
d1822bc
Ignore configuration files outside of the project -
e1a2da0
Only look up to the project's root for exclusions -
0563861
Fixtraverse_files_upwards
to make searching up to the root possible -
18e318f
Merge pull request #8279 from Fatsoma/feature/require_order_block_pass -
fe066fc
Merge branch 'master' into feature/require_order_block_pass -
0c786c0
Fix line number for empty file offense -
930b65f
Fix expect_offense when annotations missing -
34a2dbd
Merge pull request #8316 from fatkodima/autocorrect-to-disjunctive_assignment... - Additional commits viewable in compare view