-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed Cognitive Complexity as per issue 3793
* CoC is now a pre-expansion Early pass. * The full draft of issue 3793 has been implemented. * `compile-test.rs` now allows `clippy::cognitive_complexity` in ui tests by default. This is because most ui tests don't use functions in a standard manner, and tend to have rather large ones. * Tests for CoC have been updated.
- Loading branch information
Showing
213 changed files
with
3,289 additions
and
3,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[alias] | ||
uitest = "test --test compile-test" | ||
|
||
[build] | ||
rustflags = ["-Zunstable-options"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- | ||
Thank you for making Clippy better! | ||
|
||
We're collecting our changelog from pull request descriptions. | ||
If your PR only updates to the latest nightly, you can leave the | ||
`changelog` entry as `none`. Otherwise, please write a short comment | ||
explaining your change. | ||
|
||
If your PR fixes an issue, you can add "fixes #issue_number" into this | ||
PR description. This way the issue will be automatically closed when | ||
your PR is merged. | ||
|
||
If you added a new lint, here's a checklist for things that will be | ||
checked during review or continuous integration. | ||
|
||
- [ ] Followed [lint naming conventions][lint_naming] | ||
- [ ] Added passing UI tests (including committed `.stderr` file) | ||
- [ ] `cargo test` passes locally | ||
- [ ] Executed `util/dev update_lints` | ||
- [ ] Added lint documentation | ||
- [ ] Run `cargo fmt` | ||
|
||
Note that you can skip the above if you are just opening a WIP PR in | ||
order to get feedback. | ||
|
||
Delete this line and everything above before opening your PR --> | ||
|
||
changelog: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#![allow(clippy::default_hash_types)] | ||
|
||
use itertools::Itertools; | ||
use lazy_static::lazy_static; | ||
use regex::Regex; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.