From 8c0870de7fc27ba4b0f8ea195140db33eab8d500 Mon Sep 17 00:00:00 2001 From: Caio Date: Fri, 13 Oct 2023 10:31:02 -0300 Subject: [PATCH] Address comment --- book/src/development/adding_lints.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/book/src/development/adding_lints.md b/book/src/development/adding_lints.md index 3dc717da871..55c0e105b30 100644 --- a/book/src/development/adding_lints.md +++ b/book/src/development/adding_lints.md @@ -627,6 +627,10 @@ classification: * For all the other cases, they should be in different categories with different levels of allowance. For example, `implicit_return` (restriction, allow) and `needless_return` (style, warn). +For lints that are in different categories, it is also recommended that at least one of them should be in the +`restriction` category. The reason for this is that the `restriction` group is the only group where we don't +recommend to enable the entire set, but cherry pick lints out of. + ## PR Checklist Before submitting your PR make sure you followed all the basic requirements: