diff --git a/book/src/development/defining_lints.md b/book/src/development/defining_lints.md index 62736433fbc..5b669d33d10 100644 --- a/book/src/development/defining_lints.md +++ b/book/src/development/defining_lints.md @@ -41,7 +41,6 @@ There are two things to note here: is an `early` lint pass. We will discuss this difference in a later chapter. 2. If not provided, the `category` of this new lint will default to `nursery`. -See Clippy's [lint types](../lints.md) for more information on categories. The `cargo dev new_lint` command will create a new file: `clippy_lints/src/foo_functions.rs` as well as [register the lint](#lint-registration). @@ -67,6 +66,8 @@ Untracked files: ### Specific Type +> **Note**: Lint types are listed in the ["Lint types"](#lint-types) section + If you believe that this new lint belongs to a specific type of lints, you can run `cargo dev new_lint` with a `--type` option. @@ -135,7 +136,7 @@ the lint pass in question will not be run. ## Lint types -As of the writing of this documentation update, there are 12 categories (a.k.a. _types_) +As of the writing of this documentation update, there are 12 groups (a.k.a. _types_) of lints besides the numerous standalone lints living under `clippy_lints/src/`: - `cargo`