mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 20:07:21 +00:00
Merge pull request #3301 from sigustin/patch-1
Specify which categories are enabled by default
This commit is contained in:
commit
7557269db2
2 changed files with 11 additions and 0 deletions
|
@ -24,6 +24,15 @@ We have a bunch of lint categories to allow you to choose how much Clippy is sup
|
||||||
|
|
||||||
More to come, please [file an issue](https://github.com/rust-lang-nursery/rust-clippy/issues) if you have ideas!
|
More to come, please [file an issue](https://github.com/rust-lang-nursery/rust-clippy/issues) if you have ideas!
|
||||||
|
|
||||||
|
Only the following of those categories are enabled by default:
|
||||||
|
|
||||||
|
* `clippy::style`
|
||||||
|
* `clippy::correctness`
|
||||||
|
* `clippy::complexity`
|
||||||
|
* `clippy::perf`
|
||||||
|
|
||||||
|
Other categories need to be enabled in order for their lints to be executed.
|
||||||
|
|
||||||
Table of contents:
|
Table of contents:
|
||||||
|
|
||||||
* [Usage instructions](#usage)
|
* [Usage instructions](#usage)
|
||||||
|
|
|
@ -46,6 +46,8 @@ extern crate syntax_pos;
|
||||||
|
|
||||||
use toml;
|
use toml;
|
||||||
|
|
||||||
|
// Currently, categories "style", "correctness", "complexity" and "perf" are enabled by default,
|
||||||
|
// as said in the README.md of this repository. If this changes, please update README.md.
|
||||||
macro_rules! declare_clippy_lint {
|
macro_rules! declare_clippy_lint {
|
||||||
{ pub $name:tt, style, $description:tt } => {
|
{ pub $name:tt, style, $description:tt } => {
|
||||||
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }
|
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }
|
||||||
|
|
Loading…
Add table
Reference in a new issue