#8499: Fix Style/IfUnlessModifier and Style/WhileUntilModifier to prevent an offense if there are both first-line comment and code after end 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 and if branch body is empty. (@koic)
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.83.0 → ~> 1.3.0) · Repo · Changelog
Release Notes
1.3.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 50 commits:
Cut 1.3
Update Changelog
Only report offenses as correctable if `Layout/LineLength` actually can correct them.
[Fix #8978] Update `Layout/LineLength` autocorrection to be able to handle method calls with long argument lists.
[Fix #9026] Update `Style/DocumentDynamicEvalDefinition` to detect comment blocks that document the evaluation.
Fix formatting in CONTRIBUTING.md.
[Fix #9011] Mark autocorrection for `Lint/Loop` as unsafe.
Add new `Style/NilLambda` cop to check for lambdas that always return nil.
[Fix #9025] Add `AllowedMethods` to `Lint/ConstantDefinitionInBlock`
[Fix #9015] Update `Lint/EmptyBlock` to allow for empty lambdas.
Merge pull request #9024 from koic/mark_unsafe_for_collection_compact
[Fix #9023] Mark unsafe for `Style/CollectionCompact`.
Add `NOTE` to keywords of `Style/CommentAnnotation`
Support auto-correction for `Style/IfInsideElse`
[Fix #9012] Allow `AllowedIdentifiers` to be specified for `Naming/VariableNumber`.
Fix specs for SpaceInsideArrayLiteralBrackets
Merge pull request #9009 from koic/update_rubocop_version_of_contributing_doc
Mark `Style/InfiniteLoop` as unsafe
Update RuboCop version of CONTRIBUTING.md when releasing
Add new `Style/StaticClass` cop
[Fix #8761] Read `required_ruby_version` from gemspec file if it exists (#8885)
Add new `Lint/EmptyClass` cop
Fix an infinite loop when autocorrecting `Layout/TrailingWhitespace` + `Lint/LiteralInInterpolation`
Re-enable spec after rubocop-rspec 2.0
Remove exemptions for fixed cop
Remove obsolete gem `SafeYAML` compatibility
Refactor Lint/DuplicateCaseCondition cop with Set
Remove dupes, thanks to `RSpec/RepeatedIncludeExample`
Disable `RSpec/StubbedMock`.
Remove pre < 1 config
Update rubocop-rspec to 2.0
move logic from `find_comma_pos` into `range_to_remove`
move logic to new method to reduce Metrics/AbcSize
move logic from method `range_with_comma` to `range_to_remove`
change `if` condition to single-line style
extract comma_pos logic to a method to reduce Metrics/AbcSize and Metrics/MethodLength
[Fix #8118] fix autocorrect for redundant cop enable directive
Merge pull request #9000 from koic/use_cop_base_api_for_bundler_and_gemspec
[Fix #8499] Fix Style/IfUnlessModifier to prevent offense when first-line comment and code after end block
Use `Cop::Base` API for some `Bundler` and `Gemspec` cops
Tweak some language
Add new `Lint/DuplicateBranch` cop
Make Lint/Debugger configurable in terms of debugger methods (#8929)
Improve the description of Style/IdenticalConditionalBranches
Fix release notes
[Fix #8996] Fix a false positive for `Style/MultipleComparison`
[Fix #8998] Fix an error for `Style/NegatedIfElseCondition`
Restore lost entries in the CHANGELOG
Tweak the funding language
Switch back the docs version 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