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

Test all files with Rubocop, not just added code in the diff #12393

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Apr 16, 2024

What? Why?

Generally, we want to keep the whole code base healthy. If a PR changes the Rubocop rules, we want the whole codebase to be tested. For example, when we upgrade Rubocop, we now don't have to run it locally any more, CI will do it for us. We also found that the diff filter didn't always work as expected.

What should we test?

  • No test.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

@mkllnk mkllnk self-assigned this Apr 16, 2024
@mkllnk mkllnk added the technical changes only These pull requests do not contain user facing changes and are grouped in release notes label Apr 16, 2024
@mkllnk mkllnk force-pushed the lint-rubocop branch 2 times, most recently from e42d236 to 812f41d Compare April 16, 2024 23:40
@mkllnk mkllnk marked this pull request as ready for review April 16, 2024 23:57
Copy link
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

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

And with Bundler too, good one!

I had at the bottom of my to-do list to try "option 3", which could be more efficient. But I'm glad you saved me from going down the rabbit-hole, besides as you noted, diffing isn't perfect.

@dacook dacook merged commit 4a3f413 into openfoodfoundation:master Apr 22, 2024
50 checks passed
@mkllnk mkllnk deleted the lint-rubocop branch May 8, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical changes only These pull requests do not contain user facing changes and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Rubocop] Change linter to run Rubocop on the whole codebase
3 participants