-
Notifications
You must be signed in to change notification settings - Fork 149
linter:usrmerge: Improve error message to list files #1863
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
linter:usrmerge: Improve error message to list files #1863
Conversation
c0e6a9f
to
c8c4e1a
Compare
2b79445
to
c8c4e1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the code on lines 803-810 is effectively unreachable . unless WalkDir searches depth-first.
But this is better than it was.
I would prefer a list of the things that are bad. But Justin says this is better.
Most of our other linters exit on the first error they find and I don't see a benefit to listing the files beyond the first one you encounter since the remedy is the same. I'll check if that's unreachable and probably remove that section if it is. |
c8c4e1a
to
a1a15f6
Compare
need to remove the schema updates and such that snuck in. idk why these aren't update in the pr that should've changed them. |
Looks like this: ``` Package contains paths in violation of usrmerge: bin bin/test sbin sbin/test usr/sbin usr/sbin/test ```
a1a15f6
to
ccd82b8
Compare
i think this looks fine. the only question, from reading this I think that the commit message is out dated. you would not see directories listed, right? only non-directories. Ie, in the following no usr/sbin or bin or usr/sbin in the beolow.
|
Ahh yeah I need to update that or fix it in the merge command.
Every other line is a directory in that snippet? |
Oh of course I updated the commit message not the github summary dislike |
Looks like this: