Closed ydah closed 10 months ago
❯ bundle exec rubocop -A Inspecting 40 files .................C......................
Offenses:
lib/rubocop/cop/capybara/specific_finders.rb:79:30: C: [Corrected] InternalAffairs/NodeFirstOrLastArgument: Use #first_argument instead of #arguments[0]. range_between(node.arguments[0].source_range.end_pos, ^^^^^^^^^^^^
40 files inspected, 1 offense detected, 1 offense corrected
Before submitting the PR make sure the following are checked:
main
CHANGELOG.md
bundle exec rake
If you have created a new cop:
config/default.yml
Enabled: pending
VersionAdded: "<<next>>"
default/config.yml
If you have modified an existing cop's configuration options:
VersionChanged: "<<next>>"
Thank you!
❯ bundle exec rubocop -A Inspecting 40 files .................C......................
Offenses:
lib/rubocop/cop/capybara/specific_finders.rb:79:30: C: [Corrected] InternalAffairs/NodeFirstOrLastArgument: Use #first_argument instead of #arguments[0]. range_between(node.arguments[0].source_range.end_pos, ^^^^^^^^^^^^
40 files inspected, 1 offense detected, 1 offense corrected
Before submitting the PR make sure the following are checked:
main
(if not - rebase it).CHANGELOG.md
if the new code introduces user-observable changes.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:
config/default.yml
.Enabled: pending
inconfig/default.yml
.VersionAdded: "<<next>>"
indefault/config.yml
.If you have modified an existing cop's configuration options:
VersionChanged: "<<next>>"
inconfig/default.yml
.