Skip to content

Update rubocop-capybara 3.0.0 → 3.1.0 (minor) - #1950

Open
depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/rubocop-capybara-3.1.0
Open

depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/rubocop-capybara-3.1.0

Conversation

@depfu

@depfu depfu Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop-capybara (3.0.0 → 3.1.0) · Repo · Changelog

Release Notes

3.1.0

  • Add new Capybara/UnorderedWindowAccess cop. (@ydah)
  • Add new Capybara/AbsoluteXPathInElementScope cop. (@ydah)
  • Add new Capybara/AlwaysTrueCountQuery cop. (@ydah)
  • Add new Capybara/RSpec/CurrentUrlExpectation cop. (@ydah)
  • Add new Capybara/ModalMethodWithoutBlock cop. (@ydah)
  • Add new Capybara/NativeAttribute cop. (@ydah)
  • Add new Capybara/VisibilityOption cop. (@ydah)
  • Add new Capybara/ChainedFind cop. (@ydah)
  • Add new Capybara/IgnoredQueryOption cop. (@ydah)
  • Add new Capybara/RSpec/FindElementValueEq cop. (@ydah)
  • Recognize have_element and have_no_element in the RSpec negation cops. (@ydah)
  • Detect have_no_selector in Capybara/RSpec/HaveSelector. (@ydah)
  • Autocorrect visible: true in Capybara/RSpec/VisibilityMatcher for known selectors. (@ydah)
  • Add support for using find with :link and :field in Capybara/SpecificFinders cop. (@ydah)
  • Speed up loading rubocop-capybara by lazily loading only the cops needed for a run. This requires RuboCop 1.89.0+. (@koic)
  • Fix false positives in Capybara/RSpec/SpecificMatcher for input types excluded by have_field. (@ydah)
  • Avoid interpolating literal #{...}, #@..., and #$... patterns in Capybara/RSpec/CurrentPathExpectation and Capybara/RSpec/CurrentUrlExpectation autocorrection. (@ydah)
  • Fix false positives and negatives for Capybara/SpecificActions when CSS attribute values contain spaces. (@ydah)
  • Honor DefaultSelector: null in selector-dependent cops, including Capybara/RSpec/HaveSelector. (@ydah)
  • Fix false positives for custom elements in Capybara/SpecificActions and Capybara/RSpec/SpecificMatcher. (@ydah)
  • Avoid unsafe block autocorrection and unnecessary receiver parentheses in Capybara/RSpec/PredicateMatcher. (@ydah)
  • Fix a crash in Capybara/RSpec/CurrentPathExpectation for invalid regexp strings. (@ydah)
  • Fix Capybara/SpecificFinders when CSS id values are true or false. (@ydah)
  • Fix a crash in Capybara/SpecificActions for blank find selectors. (@ydah)
  • Fix reversed autocorrection in Capybara/RSpec/PredicateMatcher for eql and equal boolean matchers. (@ydah)
  • Avoid errors and unsafe autocorrection in Capybara/SpecificFinders with dynamic class: options. (@ydah)
  • Fix incorrect autocorrections and missed offenses for non-CSS locators in Capybara/SpecificFinders. (@ydah)
  • Use the :id selector when Capybara/RedundantWithinFind autocorrects find_by_id, preserving special and dynamic IDs. (@ydah)
  • Avoid unsafe find_field autocorrections for input types and boolean attributes in Capybara/SpecificFinders. (@ydah)
  • Fix false positives and incorrect autocorrections for Capybara/FindAllFirst when find or all uses match: :first. (@ydah)
  • Avoid Capybara/FindAllFirst offenses when the result is used with safe navigation or as a condition. (@ydah)
  • Fix an incorrect autocorrect for Capybara/RedundantWithinFind when find_by_id uses a dynamic id. (@ydah)
  • Fix an incorrect autocorrect for Capybara/RedundantWithinFind when a finder call has a block argument. (@ydah)
  • Fix a false positive for Capybara/RSpec/HaveSelector when DefaultSelector is unsupported. (@ydah)
  • Fix an incorrect autocorrect for Capybara/SpecificFinders when a selector class is empty or contains an escaped dot. (@ydah)
  • Fix a false positive for Capybara/SpecificFinders when an id selector contains unsupported CSS identifier syntax. (@ydah)
  • Fix a false negative for Capybara/RSpec/NegationMatcherAfterVisit when using to_not. (@ydah)
  • Fix an incorrect autocorrect for Capybara/RSpec/PredicateMatcher when EnforcedStyle: explicit and expect actual is a complex expression. (@ydah)
  • Fix Capybara/RSpec/CurrentPathExpectation autocorrection for match when the URL has a query string. (@ydah)
  • Fix a false positive for Capybara/SpecificActions when click uses arguments or a block. (@ydah)
  • Fix an incorrect autocorrect for Capybara/SpecificFinders when a selector class is used with nested class: options. (@ydah)
  • Fix CSS attribute parsing when attribute values contain quotes. (@ydah)
  • Fix CSS attribute parsing to return raw values and format Ruby literals in autocorrection. (@ydah)
  • Fix a false negative for Capybara/SpecificFinders when using find with input field attributes. (@ydah)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ rubocop (1.92.0 → 1.92.1) · Repo · Changelog

Release Notes

1.92.1

Bug fixes

  • #16063: Fix an error for Layout/HashAlignment with a key spanning multiple lines. (@koic)
  • #15776: Fix an error in server mode when the configuration file is missing or empty. (@MIbtehajNasar)
  • #15939: Fix an error for Style/ClassAndModuleChildren when compacting a namespace that contains another compactable one. (@Starlexxx)
  • #16047: Fix an error for Style/ClassMethodsDefinitions with a nested class << self. (@Starlexxx)
  • #16041: Fix an error for Style/EmptyStringInsideInterpolation with nested conditionals. (@koic)
  • #16067: Fix an error for Style/RedundantInterpolationUnfreeze with an unfrozen string interpolated into another one. (@Starlexxx)
  • #16055: Fix an error for Style/RescueModifier with a rescue modifier in the rescue body of another one. (@Starlexxx)
  • #15968: Fix an error when the target Ruby version lookup cannot list a directory for a gemspec or read a version file or lockfile, and stop the gemspec search at the project root. (@koic)
  • #16073: Fix an incorrect autocorrect for Layout/ClassStructure with code after a heredoc. (@koic)
  • #16026: Fix an incorrect autocorrect for Layout/DotPosition with a dot removed by another cop. (@koic)
  • #16107: Fix an incorrect autocorrect for Layout/HeredocArgumentClosingParenthesis with Layout/MultilineMethodCallBraceLayout. (@koic)
  • #16117: Fix an incorrect autocorrect for Layout/LineLength with an unparenthesized method definition. (@koic)
  • #16061: Fix an incorrect autocorrect for Layout/MultilineHashBraceLayout with a nested literal. (@koic)
  • #16033: Fix an incorrect autocorrect for Layout/MultilineMethodCallIndentation with a single-line block. (@koic)
  • #16077: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with Style/RedundantSort. (@koic)
  • #16098: Fix an incorrect autocorrect for Lint/AmbiguousRegexpLiteral with a regexp hash key. (@koic)
  • #16086: Fix an incorrect autocorrect for Lint/SymbolConversion with hash value omission. (@koic)
  • #16099: Fix an incorrect autocorrect for Naming/RescuedExceptionsVariableName with Style/HashSyntax. (@koic)
  • #16023: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with Style/EndlessMethod. (@Starlexxx)
  • #16024: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with an endless method command body. (@Starlexxx)
  • #16111: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with an endless method with a do...end block body. (@koic)
  • #16056: Fix an incorrect autocorrect for Style/AndOr with a safe navigation command call. (@Starlexxx)
  • #16043: Fix an incorrect autocorrect for Style/AndOr with Style/ReturnNil. (@koic)
  • #16020: Fix an incorrect autocorrect for Style/ArgumentsForwarding when another call forwards anonymous arguments without the block. (@Starlexxx)
  • #16038: Fix an incorrect autocorrect for Style/ArgumentsForwarding with index assignment and setter methods. (@koic)
  • #15067: Fix an incorrect autocorrect for Style/CollectionQuerying when count is used without a block. (@Starlexxx, @wwenrr)
  • #16032: Fix an incorrect autocorrect for Style/CombinableLoops with Layout/BlockEndNewline. (@Starlexxx)
  • #16072: Fix an incorrect autocorrect for Style/CombinableLoops with Layout/RedundantLineBreak. (@koic)
  • #16036: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with a multiline call without parentheses. (@koic)
  • #16100: Fix an incorrect autocorrect for Style/EmptyStringInsideInterpolation with a command call. (@koic)
  • #16023: Fix an incorrect autocorrect for Style/EndlessMethod with a command body in a method definition passed as an argument. (@Starlexxx)
  • #16110: Fix an incorrect autocorrect for Style/EndlessMethod with a do...end block body in a method definition passed as an argument. (@koic)
  • #16042: Fix an incorrect autocorrect for Style/EndlessMethod with a negated command call. (@koic)
  • #16029: Fix an incorrect autocorrect for Style/EndlessMethod with Style/GuardClause. (@koic)
  • #16058: Fix an incorrect autocorrect for Style/EndlessMethod with Style/RaiseArgs. (@Starlexxx)
  • #16045: Fix an incorrect autocorrect for Style/For with a numbered or it block. (@koic)
  • #16046: Fix an incorrect autocorrect for Style/For with block parameters invalid as loop variables. (@koic)
  • #16044: Fix an incorrect autocorrect for Style/For with Style/ItBlockParameter. (@koic)
  • #16031: Fix an incorrect autocorrect for Style/GuardClause with a heredoc in a multiline guard clause. (@Starlexxx)
  • #16031: Fix an incorrect autocorrect for Style/GuardClause with a heredoc in the kept branch. (@Starlexxx)
  • #16021: Fix an incorrect autocorrect for Style/HashAsLastArrayItem with Style/TrailingCommaInArrayLiteral. (@Starlexxx)
  • #16027: Fix an incorrect autocorrect for Style/IfUnlessModifier with a heredoc in the condition. (@koic)
  • #16025: Fix an incorrect autocorrect for Style/Lambda with extra spacing before the block. (@koic)
  • #16054: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a trailing comma. (@koic)
  • #16080: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a parenthesized argument. (@koic)
  • #16074: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with an assignment used as an argument. (@koic)
  • #16118: Fix an incorrect autocorrect for Style/MethodDefParentheses with Layout/LineLength. (@koic)
  • #16039: Fix an incorrect autocorrect for Style/MixinGrouping with parenthesized arguments. (@koic)
  • #16085: Fix an incorrect autocorrect for Style/MutableConstant with an omitted hash value. (@koic)
  • #16075: Fix an incorrect autocorrect for Style/MutableConstant with Recursive: true and Style/HashAsLastArrayItem. (@koic)
  • #16030: Fix an incorrect autocorrect for Style/RaiseArgs dropping required parentheses. (@Starlexxx)
  • #16101: Fix an incorrect autocorrect for Style/RedundantInterpolationUnfreeze with Layout/MultilineMethodCallBraceLayout. (@koic)
  • #16108: Fix an incorrect autocorrect for Style/RedundantInterpolationUnfreeze with a comment. (@koic)
  • #16040: Fix an incorrect autocorrect for Style/RedundantSelfAssignmentBranch with assignment used as value. (@koic)
  • #16076: Fix an incorrect autocorrect for Style/RedundantSort with a line break before the accessor. (@koic)
  • #16102: Fix an incorrect autocorrect for Style/RequireOrder without a trailing newline. (@koic)
  • #16037: Fix an incorrect autocorrect for Style/SendWithLiteralMethodName with Layout/MultilineMethodArgumentLineBreaks. (@koic)
  • #16062: Fix an incorrect autocorrect for Style/StructInheritance with Style/MethodCallWithArgsParentheses. (@koic)
  • #16103: Fix an incorrect autocorrect for Style/SymbolProc with Style/TrailingCommaInArguments. (@koic)
  • #16048: Fix an infinite loop for Layout/ArgumentAlignment with a binary operator. (@koic)
  • #16116: Fix an infinite loop for Layout/EmptyLineAfterMultilineCondition with a statement on the condition line. (@koic)
  • #16051: Fix an infinite loop for Layout/EmptyLineAfterMultilineCondition with rescue. (@koic)
  • #16059: Fix an infinite loop for Layout/EmptyLinesAroundBlockBody with block arguments on the next line. (@koic)
  • #16028: Fix an infinite loop for Layout/EndAlignment with a conditional in a method argument. (@koic)
  • #16034: Fix an infinite loop for Layout/FirstArgumentIndentation with a multiline hash first argument. (@koic)
  • #15927: Fix an infinite loop for Layout/FirstArrayElementLineBreak with Layout/SpaceInsideArrayLiteralBrackets compact style. (@Starlexxx)
  • #16050: Fix an infinite loop for Layout/FirstHashElementIndentation with a double splat. (@koic)
  • #16069: Fix an infinite loop for Layout/HeredocArgumentClosingParenthesis with a HEREDOC nested in a hash argument. (@Starlexxx)
  • #16082: Fix an infinite loop for Layout/IndentationConsistency with Layout/IndentationWidth disabled on a line. (@koic)
  • #16022: Fix an infinite loop for Layout/LineLength splitting off a blank string. (@Starlexxx)
  • #16079: Fix an infinite loop for Layout/LineLength with Layout/SpaceInsideArrayLiteralBrackets compact style. (@koic)
  • #16053: Fix an infinite loop for Layout/LineLength with a run of spaces at the break. (@koic)
  • #16078: Fix an infinite loop for Layout/LineLength with a very long string. (@koic)
  • #16035: Fix an infinite loop for Layout/RedundantLineBreak with Layout/ExtraSpacing. (@koic)
  • #16060: Fix an infinite loop for Style/IfUnlessModifier with multiple modifiers in a logical operator. (@koic)
  • #16049: Fix an infinite loop for Style/IfUnlessModifier with spaces inside parentheses. (@koic)
  • #16064: Fix an infinite loop for Style/Lambda with Layout/SpaceInLambdaLiteral. (@koic)
  • #16052: Fix an infinite loop for Style/Lambda with Layout/SpaceInsideParens. (@koic)
  • #16084: Fix an infinite loop for Style/MutableConstant with a splat in a frozen array. (@koic)
  • #16071: Fix an infinite loop for Style/MutableConstant with Recursive: true and a hash without braces. (@koic)
  • #16018: Fix an infinite loop for Style/RequireOrder with a long list of unsorted requires. (@Starlexxx)
  • #16131: Fix RuboCop::Cop::Badge equality comparing only hash values, which could treat unrelated cops as the same on platforms with narrow object hashes such as Windows and JRuby. (@koic)
  • #16091: Fix Style/BlockDelimiters moving a trailing directive comment before the block. (@Starlexxx)
  • #16070: Fix false negatives for Layout/SpaceInsideReferenceBrackets with chained reference brackets inside. (@koic)
  • #16083: Fix false positives for Lint/SafeNavigationConsistency across || branches. (@koic)
  • #16119: Fix false positives in Style/ItBlockParameter when a local variable named it is in scope. (@koic)
  • #16120: Fix false positives in Style/ItBlockParameter when the block reassigns its parameter. (@koic)
  • #16106: Fix an incorrect autocorrect for Lint/HeredocMethodCallPosition with Style/MethodCallWithArgsParentheses. (@Starlexxx)
  • #15745: Make Layout/ClassStructure aware of the symbol-list forms of visibility modifiers, such as private :foo, :bar and private_class_method :foo. (@dduugg)
  • #16093: Fix a Parser::ClobberingError for Lint/NumberConversion with a symbol conversion in a corrected receiver. (@Starlexxx)
  • #16109: Fix an incorrect autocorrect for Style/ParenthesesAroundCondition with a multiple assignment. (@Starlexxx)
  • #16113: Fix a Parser::ClobberingError for Style/RaiseArgs with a raise nested in another. (@Starlexxx)
  • #16112: Fix an error for Style/RedundantBegin with a multiline begin as the condition of a modifier if. (@Starlexxx)
  • #16095: Fix an infinite loop for Layout/RedundantLineBreak with Layout/LineLength and tab indentation. (@Starlexxx)
  • #15745: Fix Style/ClassMethodsDefinitions and Style/DocumentationMethod treating methods named in a multi-symbol private call as public, which made the former correct class << self to code raising NameError. (@dduugg)
  • #16097: Fix an infinite loop for Lint/UselessSetterCall with Lint/Void in initialize and setter methods. (@Starlexxx)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

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 cancel merge
Cancels automatic merging of this PR
@​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)

@depfu depfu Bot added the depfu label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants