open-build-service
open-build-service copied to clipboard
Regenerate the Rubocop TODOs on depfu PRs
This creates a commit with a regenerated TODOs file from Rubocop whenever depfu pushes into a depfu/update/srcapi/rubocop-*
branch. Fixes #5009
Isn't that just
AllCops:
NewCops: disable
Isn't that just
AllCops: NewCops: disable
I mean, we could also run rubocop -a
and then rubocop --regenerate-todo
, that might make this more useful
I mean, we could also run rubocop -a and then rubocop --regenerate-todo, that might make this more useful
I'm not sure what you are trying to achieve? This is about complying to a style guide. If the style guide changes, a human should think about if we want to comply or not.
I'm not sure what you are trying to achieve? This is about complying to a style guide. If the style guide changes, a human should think about if we want to comply or not.
Most of the times, we would face changes in the existing cops (fix of false positives or fix of false negatives). This is what this commit is for: to reduce the burden of creating a manual commit with the changes in the rubocop_todo files.
I agree, that this commit automatically created could give the impression that we should approve the changes and merge the pull request because everything is fine. And maybe we miss reviewing the following pull requests in detail. But I'm in favor of merging this pull request as it is.
In the worst-case scenario, merging RuboCop Depfu pull requests with the commit automatically generated can introduce a cop and its exceptions in the TODO files. This cop can be easily disabled afteward. Even if we face this case, I think this will not happen so often.