rubocop / rubocop-capybara

Code style checking for Capybara files.
https://docs.rubocop.org/rubocop-capybara
MIT License
41 stars 8 forks source link

Cop idea: Debug method detection #109

Closed ydah closed 6 months ago

ydah commented 6 months ago

There are some debugging methods in capybara, but it would be nice to have a way to detect the use of these methods.

# bad
save_and_open_page

# bad
page.save_screenshot('screenshot.png')

# bad
save_and_open_screenshot

be similar to: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/Debugger

ydah commented 6 months ago

It was found unnecessary because it was already covered below. https://docs.rubocop.org/rubocop/cops_lint.html#lintdebugger