We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b61ca63 commit b5dd8f1Copy full SHA for b5dd8f1
clippy_dev/src/lib.rs
@@ -93,6 +93,8 @@ fn parse_contents(content: &str, filename: &str) -> impl Iterator<Item=Lint> {
93
94
/// Collects all .rs files in the `clippy_lints/src` directory
95
fn lint_files() -> impl Iterator<Item=walkdir::DirEntry> {
96
+ // We use `WalkDir` instead of `fs::read_dir` here in order to recurse into subdirectories.
97
+ // Otherwise we would not collect all the lints, for example in `clippy_lints/src/methods/`.
98
WalkDir::new("../clippy_lints/src")
99
.into_iter()
100
.filter_map(|f| f.ok())
0 commit comments