]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/book/src/configuration.md
New upstream version 1.72.1+dfsg1
[rustc.git] / src / tools / clippy / book / src / configuration.md
index 1304f6a8c2f095bc4056824fc9d1afe2aca3afb3..e8274bc4575d04bd86716a10bcf9ee2450e48ad1 100644 (file)
@@ -2,8 +2,14 @@
 
 > **Note:** The configuration file is unstable and may be deprecated in the future.
 
-Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a
-basic `variable = value` mapping e.g.
+Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`, which is searched for in:
+
+1. The directory specified by the `CLIPPY_CONF_DIR` environment variable, or
+2. The directory specified by the
+[CARGO_MANIFEST_DIR](https://doc.rust-lang.org/cargo/reference/environment-variables.html) environment variable, or
+3. The current directory.
+
+It contains a basic `variable = value` mapping e.g.
 
 ```toml
 avoid-breaking-exported-api = false