Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Capybara/FindAllFirst cop #118

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Add new Capybara/FindAllFirst cop #118

merged 1 commit into from
Jun 12, 2024

Conversation

ydah
Copy link
Member

@ydah ydah commented Apr 11, 2024

Fix: #115


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with main (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

If you have created a new cop:

  • Added the new cop to config/default.yml.
  • The cop is configured as Enabled: pending in config/default.yml.
  • The cop documents examples of good and bad code.
  • The tests assert both that bad code is reported and that good code is not reported.
  • Set VersionAdded: "<<next>>" in default/config.yml.

@ydah
Copy link
Member Author

ydah commented Jun 12, 2024

Run this cop on the project at hand, there seem to be no false positives, so it appears to be a non-issue.

@ydah ydah merged commit 2e9e33a into main Jun 12, 2024
26 checks passed
@ydah ydah deleted the add-new-cop branch June 12, 2024 16:16
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.

Cop idea: first(...) instead of all(...)[0]
1 participant