Skip to content

Commit 8c0870d

Browse files
committed
Address comment
1 parent d179605 commit 8c0870d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

book/src/development/adding_lints.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,10 @@ classification:
627627
* For all the other cases, they should be in different categories with different levels of allowance. For example,
628628
`implicit_return` (restriction, allow) and `needless_return` (style, warn).
629629

630+
For lints that are in different categories, it is also recommended that at least one of them should be in the
631+
`restriction` category. The reason for this is that the `restriction` group is the only group where we don't
632+
recommend to enable the entire set, but cherry pick lints out of.
633+
630634
## PR Checklist
631635

632636
Before submitting your PR make sure you followed all the basic requirements:

0 commit comments

Comments
 (0)