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

Fewer inline disabled cops #2039

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Fewer inline disabled cops #2039

merged 2 commits into from
Feb 11, 2025

Conversation

bquorning
Copy link
Collaborator

The first commit removes a few unnecessary RuboCop disables. This includes fixing a Naming/PredicateName offense, and one Style/GuardClause offense.

I am not sure why Lint/RedundantCopDisableDirective didn't find the unnecessary disabling of RSpec/ExampleLength 🤷🏼

The second commit loosens Metrics/MethodLength Max to 15. The default is 10, which seems to be just a bit too low for our code.


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (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).

@bquorning bquorning requested a review from a team as a code owner February 11, 2025 19:39
lib/rubocop/cop/rspec/implicit_expect.rb Outdated Show resolved Hide resolved
This includes fixing a `Naming/PredicateName` offense, and one
`Style/GuardClause` offense.

Not sure why Lint/RedundantCopDisableDirective didn't find these.
The default is 10, which seems to be just a bit too low for our code.
@bquorning bquorning force-pushed the fewer-inline-disabled-cops branch from 21bf860 to 2edbf15 Compare February 11, 2025 20:46
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bquorning bquorning merged commit d29fd64 into master Feb 11, 2025
27 checks passed
@bquorning bquorning deleted the fewer-inline-disabled-cops branch February 11, 2025 22:38
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.

3 participants