Document generating lint config docs for adding configuration

This commit is contained in:
Tyler Weaver 2023-01-14 07:39:49 -07:00
parent dc5ce488e7
commit d950279a03
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -699,6 +699,10 @@ for some users. Adding a configuration is done in the following steps:
`clippy.toml` file with the configuration value and a rust file that `clippy.toml` file with the configuration value and a rust file that
should be linted by Clippy. The test can otherwise be written as usual. should be linted by Clippy. The test can otherwise be written as usual.
5. Update [Lint Configuration](../lint_configuration.md)
Run `cargo collect-metadata` to generate documentation changes for the book.
[`clippy_lints::utils::conf`]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/conf.rs [`clippy_lints::utils::conf`]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/conf.rs
[`clippy_lints` lib file]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/lib.rs [`clippy_lints` lib file]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/lib.rs
[`tests/ui`]: https://github.com/rust-lang/rust-clippy/blob/master/tests/ui [`tests/ui`]: https://github.com/rust-lang/rust-clippy/blob/master/tests/ui