#8232: Fix a false positive for Layout/EmptyLinesAroundAccessModifier when end 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 to AllowedNames of MethodParameterName cop. (@AlexWayfer)
#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 using attr_reader and attr_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 of OpenSSL::Cipher to use lower case, as some Linux-based systems do not accept upper cased cipher names. (@bdewater)
#8213: Permit to specify TargetRubyVersion 2.8 (experimental). (@koic)
#8159: Add new CountAsOne option for code length related Metric cops. (@fatkodima)
#8164: Support auto-correction for Lint/InterpolationCheck. (@koic)
#8223: Support auto-correction for Style/IfUnlessModifierOfIfUnless. (@koic)
#8172: Support auto-correction for Lint/SafeNavigationWithEmpty. (@koic)
Bug fixes
#8039: Fix false positives for Lint/ParenthesesAsGroupedExpression in when using operators or chain functions. (@CamilleDrapier)
#8196: Fix a false positive for Style/RedundantFetchBlock when using with Rails.cache. (@fatkodima)
#8195: Fix an error for Style/RedundantFetchBlock when using #fetch with empty block. (@koic)
#8193: Fix a false positive for Style/RedundantRegexpCharacterClass when using [\b]. (@owst)
#8205: Fix a false positive for Style/RedundantRegexpCharacterClass when using a leading escaped ]. (@owst)
#8208: Fix Style/RedundantParentheses with hash literal as first argument to yield. (@karlwithak)
#8176: Don't load .rubocop.yml from personal folders to check for exclusions if there's a project configuration. (@deivid-rodriguez)
Changes
#7868: (Breaking) Extensive refactoring of internal classes Team, Commissioner, Corrector. Cop::Cop#corrections not completely compatible. See Upgrade Notes. (@marcandre)
#8156: (Breaking)rubocop -a / --autocorrect no longer run unsafe corrections; rubocop -A / --autocorrect-all run both safe and unsafe corrections. Options --safe-autocorrect is deprecated. (@marcandre)
#8207: (Breaking) Order for gems names now disregards underscores and dashes unless ConsiderPunctuation setting is set to true. (@marcandre)
#8211: Style/ClassVars cop now detects class_variable_set. (@biinari)
#8245: Detect top-level constants like ::Const in various cops. (@biinari)
#6289: Add new CheckDefinitionPathHierarchy option for Naming/FileName. (@jschneid)
#8055: Add new Style/RedundantRegexpCharacterClass cop. (@owst)
#8069: New option for expect_offense to help format offense templates. (@marcandre)
#7908: Add new Style/RedundantRegexpEscape cop. (@owst)
#7978: Add new option OnlyFor to the Bundler/GemComment cop. (@ric2b)
#8063: Add new AllowedNames option for Naming/ClassAndModuleCamelCase. (@tejasbubane)
#8050: New option --display-only-failed that can be used with --format junit. Speeds up test report processing for large codebases and helps address the sorts of concerns raised at mikian/rubocop-junit-formatter #18. (@burnettk)
#7746: Add new Lint/MixedRegexpCaptureTypes cop. (@pocke)
Bug fixes
#8008: Fix an error for Lint/SuppressedException when empty rescue block in def. (@koic)
#8012: Fix an incorrect autocorrect for Lint/DeprecatedOpenSSLConstant when deprecated OpenSSL constant is used in a block. (@koic)
#8017: Fix a false positive for Lint/SuppressedException when empty rescue with comment in def. (@koic)
#7990: Fix resolving inherit_gem in remote configs. (@CvX)
#8035: Fix a false positive for Lint/DeprecatedOpenSSLConstant when using double quoted string argument. (@koic)
#7971: Fix an issue where --disable-uncorrectable would not update uncorrected code with rubocop:todo. (@rrosenblum)
#8035: Fix a false positive for Lint/DeprecatedOpenSSLConstant when argument is a variable, method, or consntant. (@koic)
Changes
#8056: (Breaking) Remove support for unindent/active_support/powerpack from Layout/HeredocIndentation, so it only recommends using squiggy heredoc. (@bquorning)
#7916: Support autocorrection for Lint/AmbiguousRegexpLiteral. (@koic)
#7917: Support autocorrection for Lint/UselessAccessModifier. (@koic)
#595: Add ERB pre-processing for configuration files. (@jonas054)
#7918: Support autocorrection for Lint/AmbiguousOperator. (@koic)
#7937: Support autocorrection for Style/IfWithSemicolon. (@koic)
#3696: Add AllowComments option to Lint/EmptyWhen cop. (@koic)
#7910: Support autocorrection for Lint/ParenthesesAsGroupedExpression. (@koic)
#7925: Support autocorrection for Layout/ConditionPosition. (@koic)
#7934: Support autocorrection for Lint/EnsureReturn. (@koic)
#7922: Add new Layout/EmptyLineAroundAttributeAccessor cop. (@koic)
Bug fixes
#7929: Fix Style/FrozenStringLiteralComment to accept frozen_string_literal anywhere in leading comment lines. (@jeffcarbs)
#7882: Fix Style/CaseEquality when AllowOnConstant is true and the method receiver is implicit. (@rafaelfranca)
#7790: Fix --parallel and --ignore-parent-exclusion combination. (@jonas054)
#7881: Fix --parallel and --force-default-config combination. (@jonas054)
#7635: Fix a false positive for Style/MultilineWhenThen when then required for a body of when is used. (@koic)
#7905: Fix an error when running rubocop --only or rubocop --except options without cop name argument. (@koic)
#7903: Fix an incorrect autocorrect for Style/HashTransformKeys and Style/HashTransformValues cops when line break before to_h method. (@diogoosorio, @koic)
#7899: Fix an infinite loop error for Layout/SpaceAroundOperators with Layout/ExtraSpacing when using ForceEqualSignAlignment: true. (@koic)
#7885: Fix Style/IfUnlessModifier logic when tabs are used for indentation. (@jonas054)
#7909: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using an intended grouped parentheses. (@koic)
#7913: Fix a false positive for Lint/LiteralAsCondition when using true literal in while and similar cases. (@koic)
#7928: Fix a false message for Style/GuardClause when using and or or operators for guard clause in then or else branches. (@koic)
#7928: Fix a false positive for Style/GuardClause when assigning the result of a guard condition with else. (@koic)
Changes
#7860: Change AllowInHeredoc option of Layout/TrailingWhitespace to true by default. (@koic)
#7094: Clarify alignment in Layout/MultilineOperationIndentation. (@jonas054)
#4245: (Breaking) Inspect all files given on command line unless --only-recognized-file-types is given. (@jonas054)
#7390: (Breaking) Enabling a cop overrides disabling its department. (@jonas054)
#7948: Mark unsafe for Style/OptionalArguments. (@koic)
#7931: Remove dependency on the jaro_winkler gem, instead depending on did_you_mean. This may be a breaking change for RuboCop libraries calling NameSimilarity#find_similar_name. (@bquorning)
#7871: Fix an auto-correction bug in Lint/BooleanSymbol. (@knu)
#7842: Fix a false positive for Lint/RaiseException when raising Exception with explicit namespace. (@koic)
#7834: Fix Lint/UriRegexp to register offense with array arguments. (@tejasbubane)
#7841: Fix an error for Style/TrailingCommaInBlockArgs when lambda literal (->) has multiple arguments. (@koic)
#7842: Fix a false positive for Lint/RaiseException when Exception without cbase specified under the namespace Gem by adding AllowedImplicitNamespaces option. (@koic)
Style/IfUnlessModifier does not infinite-loop when autocorrecting long lines which use if/unless modifiers and have multiple statements separated by semicolons. (@alexdowad)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (0.81 → 0.88.0) · Repo · Changelog
Release Notes
0.88.0
0.87.1
0.87.0
0.86.0
0.85.1
0.85.0
0.84.0
0.83.0
0.82.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 68 commits:
Cut 0.88
Add a changelog entry
Ignore configuration files outside of the project
Only look up to the project's root for exclusions
Fix `traverse_files_upwards` to make searching up to the root possible
Merge pull request #8279 from Fatsoma/feature/require_order_block_pass
Merge branch 'master' into feature/require_order_block_pass
Fix line number for empty file offense
Fix expect_offense when annotations missing
Merge pull request #8316 from fatkodima/autocorrect-to-disjunctive_assignment_in_constructor
Support autocorrect for `Lint/DisjunctiveAssignmentInConstructor` cop
Add `--memory` option to `bin/rubocop-profile` (#8318)
Reuse `ConfigStore#for_pwd` in a couple more places
Extract `ConfigStore#for_pwd`
Merge pull request #8315 from eugeneius/percent_literal_delimiters_scrub
Handle invalid characters in Style/PercentLiteralDelimiters
Merge pull request #8313 from koic/prevent_missing_trailing_zero_in_float_type
Prevent missing final zero of version number for docs/antora.yml
Optimize `Lint/DuplicateMethods`, `Lint/NestedMethodDefinition`, `Style/AutoResourceCleanup` and `Style/NumericPredicate` cops a bit
Merge pull request #8310 from eugeneius/required_major_ruby_version
Handle major version requirements in Gemspec/RequiredRubyVersion
Rewrite `Style/TrailingMethodEndStatement` to make it faster
Reduce allocated Sets
Fix LiteralAsCondition when condition
Refactor Lint specs to use expect_offense
Reduce memory usage in `ResultCache#rubocop_checksum`
Optimize `Style/CommentedKeyword` to reduce memory usage
Memoize `Badge#to_s` to reduce memory allocations (#8306)
[Docs] Tweak some markup
[Docs] Fix a typo
[Docs] Remove mention of Bountysource
Refactor spec use expect_correction in Lint cops (#8285)
[Fixes #8286] Allow abbreviated offense messages with `expect_offense`
Rewrite `Layout/SpaceAroundMethodCallOperator` cop to make it faster
Merge pull request #8292 from tejasbubane/fix-8289
Remove `PathUtil.pwd` and `PathUtil.chdir`
Remove a redundant changelog entry
Add `of` to `AllowedNames` of `MethodParameterName` cop
Sort `AllowedNames` of `MethodParameterName` cop
[Fix #8189] Consider spaces for Layout/MultilineBlockLayout
Fix `Style/AccessorGrouping` to not register offense for accessor with comment
Join lines because the line length limit is now higher
Swith to opposite style since it's preferred
Refactor `last_file_upwards` to not build an intermmediate array
Small file finding refactor
Add new `Style/ArrayCoercion` cop
Add new `Lint/DuplicateElsifCondition` cop
Merge pull request #8287 from tejasbubane/fix-8282
Fix `Style/IfUnlessModifier` bad precedence detection
Add new `Style/CaseLikeIf` cop
Add new `Style/RedundantFileExtensionInRequire` cop
Add new `Style/HashLikeCase` cop
Move a couple of changelog entries
[Fix #7776] Generate valid code if comment exists before closing brace (#8237)
Merge pull request #8271 from fatkodima/hash-array-last-item
[Fixes #8273] Fix false positive for Style/WhileUntilModifier.
Add new `Style/HashAsLastArrayItem` cop
Use expect_correction in Lint/NonDeterministicRequireOrder spec
Detect require method as arg in Lint/NonDeterministicRequireOrder
Refactor
expect_offense: coerce replacements to string
Remove unneeded include
Remove unnecessary logic from MissingElse
[Fix #8232] Fix a false positive for `Layout/EmptyLinesAroundAccessModifier`
Runner: refactor
Update index.adoc
Basic support for profiling with bin/rubocop-profile
[Docs] Switch back to master
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands