-
Notifications
You must be signed in to change notification settings - Fork 925
Allow specifying glob pattern to ignore config option #3488
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
Conversation
df90987
to
65b8c27
Compare
src/ignore_path.rs
Outdated
FileName::Real(p) => !self | ||
.ignore_set | ||
.matched_path_or_any_parents(p, false) | ||
.is_none(), |
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.
Should use is_ignore()
instead of !
and is_none()
.
src/config/mod.rs
Outdated
@@ -135,7 +135,7 @@ create_config! { | |||
"Report all, none or unnumbered occurrences of TODO in source file comments"; | |||
report_fixme: ReportTactic, ReportTactic::Never, false, | |||
"Report all, none or unnumbered occurrences of FIXME in source file comments"; | |||
ignore: IgnoreList, IgnoreList::default(), false, | |||
ignore: IgnoreList, IgnoreList::default(), true, |
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.
Would you please not make ignore
stable in this PR? I would prefer not to mark it stable until it gets tested a bit more.
- fix from_ignore_list - remove dir from ignore_list - add test - ! and is_none => is_ignore
65b8c27
to
c270a2c
Compare
Thank you the review. I changed my code. |
Cargo.toml
Outdated
|
||
# A noop dependency that changes in the Rust repository, it's a bit of a hack. | ||
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust` | ||
# for more information. | ||
rustc-workspace-hack = "1.0.0" | ||
ignore = "0.4.6" |
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.
Would you please put this under dirs = "1.0.4"
?
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.
Oh Sorry.
You don't have to rebase, I'll just squash and merge when the PR is ready. |
I see. I will not rebase since next time. |
I think this may have broken how I'm currently unable to |
related: #3413