mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 03:45:04 +00:00
Exclude crates/ide_db/src/helpers/generated_lints.rs
from tidy::check_todo
This commit is contained in:
parent
0c89f38378
commit
ae1c63fcdd
1 changed files with 5 additions and 3 deletions
|
@ -193,7 +193,9 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after-
|
||||||
fn deny_clippy(path: &Path, text: &str) {
|
fn deny_clippy(path: &Path, text: &str) {
|
||||||
let ignore = &[
|
let ignore = &[
|
||||||
// The documentation in string literals may contain anything for its own purposes
|
// The documentation in string literals may contain anything for its own purposes
|
||||||
"ide_completion/src/generated_lint_completions.rs",
|
"ide_db/src/helpers/generated_lints.rs",
|
||||||
|
// The tests test clippy lint hovers
|
||||||
|
"ide/src/hover.rs",
|
||||||
];
|
];
|
||||||
if ignore.iter().any(|p| path.ends_with(p)) {
|
if ignore.iter().any(|p| path.ends_with(p)) {
|
||||||
return;
|
return;
|
||||||
|
@ -280,7 +282,7 @@ fn check_todo(path: &Path, text: &str) {
|
||||||
// `ast::make`.
|
// `ast::make`.
|
||||||
"ast/make.rs",
|
"ast/make.rs",
|
||||||
// The documentation in string literals may contain anything for its own purposes
|
// The documentation in string literals may contain anything for its own purposes
|
||||||
"ide_completion/src/generated_lint_completions.rs",
|
"ide_db/src/helpers/generated_lints.rs",
|
||||||
];
|
];
|
||||||
if need_todo.iter().any(|p| path.ends_with(p)) {
|
if need_todo.iter().any(|p| path.ends_with(p)) {
|
||||||
return;
|
return;
|
||||||
|
@ -310,7 +312,7 @@ fn check_dbg(path: &Path, text: &str) {
|
||||||
"ide_completion/src/completions/postfix.rs",
|
"ide_completion/src/completions/postfix.rs",
|
||||||
// The documentation in string literals may contain anything for its own purposes
|
// The documentation in string literals may contain anything for its own purposes
|
||||||
"ide_completion/src/lib.rs",
|
"ide_completion/src/lib.rs",
|
||||||
"ide_completion/src/generated_lint_completions.rs",
|
"ide_db/src/helpers/generated_lints.rs",
|
||||||
// test for doc test for remove_dbg
|
// test for doc test for remove_dbg
|
||||||
"src/tests/generated.rs",
|
"src/tests/generated.rs",
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue