diff options
| author | Philipp Hansch <dev@phansch.net> | 2018-10-15 20:47:19 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2018-10-15 20:47:19 +0200 |
| commit | fb830c53db356b22a2635ed50d0698fafe310321 (patch) | |
| tree | a55f857f6d868bb7c1db50625ea5b97a6b31d737 /clippy_dev/src | |
| parent | 7da97a94dfe42768b38f6ba7dc5804cf8e5821fb (diff) | |
| download | rust-fb830c53db356b22a2635ed50d0698fafe310321.tar.gz rust-fb830c53db356b22a2635ed50d0698fafe310321.zip | |
Some more documentation for clippy_dev
Diffstat (limited to 'clippy_dev/src')
| -rw-r--r-- | clippy_dev/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index d312eadf89e..1bd9bffff06 100644 --- a/clippy_dev/src/lib.rs +++ b/clippy_dev/src/lib.rs @@ -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(); } +/// Lint data parsed from the Clippy source code. #[derive(Clone, PartialEq, Debug)] pub struct Lint { 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> { lint_files().flat_map(|f| gather_from_file(&f)) } |
