#12657: Support AutoCorrect: contextual option for LSP. (@koic)
#12273: Make OffenseCountFormatter display autocorrection information. (@koic)
#12679: Publish RuboCop::LSP.enable API to enable LSP mode. (@koic)
#12699: Support searching for .rubocop.yml and rubocop/config.yml in compliance with dot-config. (@koic)
Bug fixes
#12720: Fix a false positive for Style/ArgumentsForwarding when using block arg forwarding to within block with Ruby 3.3.0. (@koic)
#12714: Fix an error for Gemspec/RequiredRubyVersion when required_ruby_version is specified with Gem::Requirement.new and is higher than TargetRubyVersion. (@koic)
#12690: Fix an error for Style/CaseLikeIf when using == with literal and using ternary operator. (@koic)
#12668: Fix an incorrect autocorrect for Lint/EmptyConditionalBody when missing if body with conditional else body. (@koic)
#12683: Fix an incorrect autocorrect for Style/MapCompactWithConditionalBlock when using guard clause with next implicitly nil. (@koic)
#12693: Fix an incorrect autocorrect for Style/ObjectThen when using yield_self without receiver. (@koic)
#12646: Fix --auto-gen-config bug for Layout/SpaceBeforeBlockBraces. (@jonas054)
#12717: Fix regexp for inline disable comments in Style/CommentedKeyword. (@jonas054)
#12695: Fix bug in Include from inherited file in a parent directory. (@jonas054)
#12656: Fix an error for Layout/RedundantLineBreak when using index access call chained on multiline hash literal. (@koic)
#12691: Fix an error for Style/MultilineTernaryOperator when nesting multiline ternary operators. (@koic)
#12707: Fix false negative for Style/RedundantAssignment when using pattern matching. (@koic)
#12674: Fix false negatives for Style/RedundantReturn when using pattern matching. (@koic)
#12673: Fix false negatives for Lint/RedundantSafeNavigation when using safe navigation operator for literal receiver. (@koic)
#12719: Fix false negatives for Style/ArgumentsForwarding when using forwardable block arguments with Ruby 3.2+. (@koic)
#12687: Fix a false positive for Lint/Void when each block with conditional expressions that has multiple statements. (@koic)
#12649: Fix false positives for Style/InverseMethods when using relational comparison operator with safe navigation. (@koic)
#12711: Handle implicit receivers in Style/InvertibleUnlessCondition. (@sambostock)
#12648: Fix numblock regressions in omit_parenthesesStyle/MethodCallWithArgsParentheses. (@gsamokovarov)
Changes
#12641: Make error message clearer when the namespace is incorrect. (@maruth-stripe)
#12657: Support AutoCorrect: contextual option for LSP. ([@koic][])
#12273: Make OffenseCountFormatter display autocorrection information. ([@koic][])
#12679: Publish RuboCop::LSP.enable API to enable LSP mode. ([@koic][])
#12699: Support searching for .rubocop.yml and rubocop/config.yml in compliance with dot-config. ([@koic][])
Bug fixes
#12720: Fix a false positive for Style/ArgumentsForwarding when using block arg forwarding to within block with Ruby 3.3.0. ([@koic][])
#12714: Fix an error for Gemspec/RequiredRubyVersion when required_ruby_version is specified with Gem::Requirement.new and is higher than TargetRubyVersion. ([@koic][])
#12690: Fix an error for Style/CaseLikeIf when using == with literal and using ternary operator. ([@koic][])
#12668: Fix an incorrect autocorrect for Lint/EmptyConditionalBody when missing if body with conditional else body. ([@koic][])
#12683: Fix an incorrect autocorrect for Style/MapCompactWithConditionalBlock when using guard clause with next implicitly nil. ([@koic][])
#12693: Fix an incorrect autocorrect for Style/ObjectThen when using yield_self without receiver. ([@koic][])
#12646: Fix --auto-gen-config bug for Layout/SpaceBeforeBlockBraces. ([@jonas054][])
#12717: Fix regexp for inline disable comments in Style/CommentedKeyword. ([@jonas054][])
#12695: Fix bug in Include from inherited file in a parent directory. ([@jonas054][])
#12656: Fix an error for Layout/RedundantLineBreak when using index access call chained on multiline hash literal. ([@koic][])
#12691: Fix an error for Style/MultilineTernaryOperator when nesting multiline ternary operators. ([@koic][])
#12707: Fix false negative for Style/RedundantAssignment when using pattern matching. ([@koic][])
#12674: Fix false negatives for Style/RedundantReturn when using pattern matching. ([@koic][])
#12673: Fix false negatives for Lint/RedundantSafeNavigation when using safe navigation operator for literal receiver. ([@koic][])
#12719: Fix false negatives for Style/ArgumentsForwarding when using forwardable block arguments with Ruby 3.2+. ([@koic][])
#12687: Fix a false positive for Lint/Void when each block with conditional expressions that has multiple statements. ([@koic][])
#12649: Fix false positives for Style/InverseMethods when using relational comparison operator with safe navigation. ([@koic][])
#12711: Handle implicit receivers in Style/InvertibleUnlessCondition. ([@sambostock][])
#12648: Fix numblock regressions in omit_parenthesesStyle/MethodCallWithArgsParentheses. ([@gsamokovarov][])
Changes
#12641: Make error message clearer when the namespace is incorrect. ([@maruth-stripe][])
Add new RSpec/RepeatedSubjectCall cop. (@drcapulet)
Add support for assert_true, assert_false, assert_not_equal, assert_not_nil, *_empty, *_predicate, *_kind_of, *_in_delta, *_match, *_instance_of and *_includes assertions in RSpec/Rails/MinitestAssertions. (@ydah, @G-Rath)
Support asserts with messages in Rspec/BeEmpty. (@G-Rath)
Fix a false positive for RSpec/ExpectActual when used with rspec-rails routing matchers. (@naveg)
Add configuration option ResponseMethods to RSpec/Rails/HaveHttpStatus. (@ydah)
Fix a false negative for RSpec/DescribedClass when class with constant. (@ydah)
Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description. (@ydah)
Fix an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0). (@ydah)
Add new RSpec/RepeatedSubjectCall cop. ([@drcapulet])
Add support for assert_true, assert_false, assert_not_equal, assert_not_nil, *_empty, *_predicate, *_kind_of, *_in_delta, *_match, *_instance_of and *_includes assertions in RSpec/Rails/MinitestAssertions. ([@ydah], [@G-Rath])
Support asserts with messages in Rspec/BeEmpty. ([@G-Rath])
Fix a false positive for RSpec/ExpectActual when used with rspec-rails routing matchers. ([@naveg])
Add configuration option ResponseMethods to RSpec/Rails/HaveHttpStatus. ([@ydah])
Fix a false negative for RSpec/DescribedClass when class with constant. ([@ydah])
Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description. ([@ydah])
Fix an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0). ([@ydah])
Commits
951285d Merge pull request #1819 from rubocop/release
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the ruby-dependencies group with 2 updates: rubocop and rubocop-rspec.
Updates
rubocop
from 1.60.2 to 1.61.0Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
45ba779
Cut 1.610882ca9
Update Changelog87b3b4d
Rename variable in InvertibleUnlessConditionf151524
Add InvertibleUnlessCondition implicit receiver example8acce28
Tweak specs forSecurity/YAMLLoad
b4cc305
Merge pull request #12723 from koic/add_specs_for_style_arguments_forwardingbac7a0b
Add specs forStyle/ArgumentsForwarding
5da1905
Handle implicit receivers inStyle/InvertibleUnlessCondition
18004e9
[Fix #12717] Re-use definition of directive comments from Style/CommentedKeyword8aae48b
Fix a false positive forStyle/ArgumentsForwarding
Updates
rubocop-rspec
from 2.26.1 to 2.27.0Release notes
Sourced from rubocop-rspec's releases.
Changelog
Sourced from rubocop-rspec's changelog.
Commits
951285d
Merge pull request #1819 from rubocop/releasec1cc183
Bump version to v2.27ee39111
Merge pull request #1666 from rubocop/feature/165818cbdfb
Add newRSpec/IsExpectedSpecify
copbe3e48f
Merge pull request #1816 from rubocop/fix18159da6ac7
Merge pull request #1817 from rubocop/fix-rspec-4-on-ci01ffdb3
CI: Fix the RSpec 4 job91b1624
Fix an incorrect autocorrect forRSpec/ChangeByZero
when compound expectati...b5f1e25
Merge pull request #1805 from rubocop/fix-false-positive-example-without-desc...20311f5
Fix a false positive forRSpec/ExampleWithoutDescription
whenspecify
wit...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show