diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-10-02 11:03:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-02 11:03:39 +0200 |
| commit | 88e880e00c352e3845b66e7c803d8bcc726f1241 (patch) | |
| tree | 4939d99482032f23f7a6fe4852231138c4a7224a | |
| parent | fca805382b0458cfa171a86c1375a0aabd05e8d7 (diff) | |
| parent | b94238f5b38587174fb7d0c11f1569961e491330 (diff) | |
| download | rust-88e880e00c352e3845b66e7c803d8bcc726f1241.tar.gz rust-88e880e00c352e3845b66e7c803d8bcc726f1241.zip | |
Merge pull request #3250 from rust-lang-nursery/levels-readme
Mention -A and -W in readme
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md index b8684b38631..40ece34c6fa 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,8 @@ enable/disable Clippy lints until `tool_lints` are stable: #![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))] ``` +If you do not want to include your lint levels in your code, you can globally enable/disable lints by passing extra flags to clippy during the run: `cargo clippy -- -A lint_name` will run clippy with `lint_name` disabled and `cargo clippy -- -W lint_name` will run it with that enabled. On newer compilers you may need to use `clippy::lint_name` instead. + ## License Licensed under [MPL](https://www.mozilla.org/MPL/2.0/). |
