Skip to content

Commit

Permalink
Merge pull request #3250 from rust-lang-nursery/levels-readme
Browse files Browse the repository at this point in the history
Mention -A and -W in readme
  • Loading branch information
Manishearth authored Oct 2, 2018
2 parents fca8053 + b94238f commit 88e880e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down

0 comments on commit 88e880e

Please sign in to comment.