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

Observe todo file's Exclude's #2297

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Observe todo file's Exclude's #2297

merged 1 commit into from
Aug 9, 2024

Conversation

JoeCohen
Copy link
Member

@JoeCohen JoeCohen commented Aug 8, 2024

RuboCop was ignoring some of the todo file's Exclude's. This PR fixes most of that

  • Applies the workaround suggested here and here
  • regenerates RuboCop todo file
  • removes now-unnecessary disable's in app/helpers/forms_helper.rb
  • inlines the remaing disable; using the inline gives us one fewer place to change in case we want to remove this temporararily or permanently.

RuboCop was ignoring some of the todo file's Exclude's. This PR fixes most of that
- Applies the workaround suggested [here](rubocop/rubocop#13091 (comment)) and [here](rubocop/rubocop#9325 (comment))
- regenerates RuboCop todo file
- removes now-unnecessary `disable`'s in `app/helpers/forms_helper.rb`
- inlines the remaing `disable`; using the inline gives us one fewer place to change in case we want to remove this temporararily or permanently.
@JoeCohen JoeCohen added the tests label Aug 8, 2024
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 93.518%. remained the same
when pulling 4a3114a on jdc-rubocop-exclude-fix
into 99db4e9 on main.

@JoeCohen JoeCohen requested a review from nimmolo August 8, 2024 16:38
@JoeCohen
Copy link
Member Author

JoeCohen commented Aug 8, 2024

@nimmolo: This mostly solves the problem we discussed.
But I still needed to explicitly disable Metrics/ModuleLength in forms_helper.rb.
That's due to a VSCode issue. RuboCop works fine on its own.
But VSCode is ignoring the Exclude of Metrics/ModuleLength in the todo file.

@JoeCohen JoeCohen self-assigned this Aug 8, 2024
@nimmolo
Copy link
Contributor

nimmolo commented Aug 9, 2024

Thanks for doing this, Joe

@JoeCohen JoeCohen merged commit c8606b4 into main Aug 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants