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

Update Rubocop config #8570

Merged
merged 4 commits into from
Dec 9, 2021
Merged

Update Rubocop config #8570

merged 4 commits into from
Dec 9, 2021

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Dec 6, 2021

What? Why?

Our new Rubocop check in Github Actions fails pull requests which didn't introduce any style violations. The regeneration of the todo list should let everything pass so that we only observe regressions from now on.

What should we test?

Nothing.

Release notes

Changelog Category: Technical changes

Dependencies

None but this should be merged ASAP before other style violations are introduced in master again.

Copy link
Contributor

@jibees jibees left a comment

Choose a reason for hiding this comment

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

LGTM. 🙏

@mkllnk mkllnk mentioned this pull request Dec 8, 2021
@jibees jibees requested a review from Matt-Yorkley December 9, 2021 08:37
The assignments here didn't actually do anything and `number` was
restricted to numbers only already. No whitespace to remove.
Rubocop highlighted this. The todo list actually contains these files
but somehow the cop still runs and reports these as violations.
We used to keep a manual file for metrics violations because the
automatic file didn't exclude on a file-by-file basis. But Rubocop has
an additional option these days so that we can generate that
automatically in the normal todo list.

The todo list was also out of date.
@mkllnk
Copy link
Member Author

mkllnk commented Dec 9, 2021

The longer we wait the more this PR is out of sync with master and I have to rebase it again and again. So I just did that and I'll merge it now. It may need a follow up once all other current PRs have been merged (if they introduce new violations or move files).

@mkllnk mkllnk merged commit 74de65b into openfoodfoundation:master Dec 9, 2021
@mkllnk mkllnk deleted the rubocop branch December 9, 2021 22:45
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.

2 participants