Skip to content

style(rubocop): resolve Lint/Debugger todo entry - #2772

Merged
mroderick merged 2 commits into
masterfrom
fix/rubocop-lint-debugger
Jul 31, 2026
Merged

style(rubocop): resolve Lint/Debugger todo entry#2772
mroderick merged 2 commits into
masterfrom
fix/rubocop-lint-debugger

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Problem

The Lint/Debugger todo entry excluded all of spec/spec_helper.rb because the cop flags page.save_screenshot — a false positive, since Capybara's save_screenshot matches the cop's default DebuggerMethods pattern (save_screenshot is a pry-family method name).

Solution

Drop the file-wide exclusion from .rubocop_todo.yml and disable the cop inline around the single call site instead, so the rest of spec_helper.rb gets linted again.

Split out from #2768; independent of the other RuboCop PRs.

@mroderick
mroderick marked this pull request as ready for review July 31, 2026 19:08
@mroderick
mroderick merged commit 5e29904 into master Jul 31, 2026
9 checks passed
@mroderick
mroderick deleted the fix/rubocop-lint-debugger branch July 31, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant