From 6f8d47b411ac9c8f92e2b95251805ab6b9ec9c01 Mon Sep 17 00:00:00 2001 From: llogiq Date: Fri, 14 Aug 2015 11:30:39 +0200 Subject: [PATCH] add a few words on dogfood + update_lints --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8bac03d9447..eebea413f0d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,6 +35,11 @@ T-middle issues can be more involved and require verifying types. The lot of methods that are useful, though one of the most useful would be `expr_ty` (gives the type of an AST expression). `match_def_path()` in Clippy's `utils` module can also be useful. +Should you add a lint, try it on clippy itself using `util/dogfood.sh`. You may find that clippy +contains some questionable code itself! Also before making a pull request, please run +`util/update_lints.py`, which will update `lib.rs` and `README.md` with the lint declarations. Our +travis build actually checks for this. + ## Contributions Clippy welcomes contributions from everyone.