-
Notifications
You must be signed in to change notification settings - Fork 919
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
rule(Write below root): use pmatch to check against known root direct… #1137
Conversation
…ories Signed-off-by: kaizhe <derek0405@gmail.com>
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.
Lgtm. This does allow for additional exceptions, though, as the entire directory rooted for each entry in known_root_directories can be written to at arbitrary depths. I guess it's easier than trying to match the directory structure for those apps that write more than one file deep below a given directory, though.
LGTM label has been added. Git tree hash: e49eebc46e2174ad9c894552a595e4dd2c68c861
|
I agree with @mstemm however this looks like a necessary evil for now since we don't really have a way to map everything. |
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.
LGTM.
Reasonable and needed, thanks Khaize.
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.
LGTM, thanks @Kaizhe
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leodido, mstemm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/milestone 0.22.0 |
…ories
Signed-off-by: kaizhe derek0405@gmail.com
What type of PR is this?
/kind rule-update
Any specific area of the project related to this PR?
/area rules
What this PR does / why we need it:
When check against directories, we want to also check the subdirectories as well, so
in
is not the best option, usepmatch
instead.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: