mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-20 07:58:44 +00:00
Some more documentation for clippy_dev
This commit is contained in:
parent
7da97a94df
commit
fb830c53db
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ lazy_static! {
|
||||||
pub static ref DOCS_LINK: String = "https://rust-lang-nursery.github.io/rust-clippy/master/index.html".to_string();
|
pub static ref DOCS_LINK: String = "https://rust-lang-nursery.github.io/rust-clippy/master/index.html".to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Lint data parsed from the Clippy source code.
|
||||||
#[derive(Clone, PartialEq, Debug)]
|
#[derive(Clone, PartialEq, Debug)]
|
||||||
pub struct Lint {
|
pub struct Lint {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
@ -67,6 +68,7 @@ impl Lint {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Gathers all files in `src/clippy_lints` and gathers all lints inside
|
||||||
pub fn gather_all() -> impl Iterator<Item=Lint> {
|
pub fn gather_all() -> impl Iterator<Item=Lint> {
|
||||||
lint_files().flat_map(|f| gather_from_file(&f))
|
lint_files().flat_map(|f| gather_from_file(&f))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue