Skip to content

Commit 7557269

Browse files
authored
Merge pull request #3301 from sigustin/patch-1
Specify which categories are enabled by default
2 parents e03a06b + 4e20625 commit 7557269

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ We have a bunch of lint categories to allow you to choose how much Clippy is sup
2424

2525
More to come, please [file an issue](https://github.com/rust-lang-nursery/rust-clippy/issues) if you have ideas!
2626

27+
Only the following of those categories are enabled by default:
28+
29+
* `clippy::style`
30+
* `clippy::correctness`
31+
* `clippy::complexity`
32+
* `clippy::perf`
33+
34+
Other categories need to be enabled in order for their lints to be executed.
35+
2736
Table of contents:
2837

2938
* [Usage instructions](#usage)

clippy_lints/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ extern crate syntax_pos;
4646

4747
use toml;
4848

49+
// Currently, categories "style", "correctness", "complexity" and "perf" are enabled by default,
50+
// as said in the README.md of this repository. If this changes, please update README.md.
4951
macro_rules! declare_clippy_lint {
5052
{ pub $name:tt, style, $description:tt } => {
5153
declare_tool_lint! { pub clippy::$name, Warn, $description, report_in_external_macro: true }

0 commit comments

Comments
 (0)