forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#98173 - flip1995:clippyup, r=Manishearth
Update Clippy r? `@Manishearth`
- Loading branch information
Showing
200 changed files
with
4,142 additions
and
1,913 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,6 @@ helper.txt | |
*.iml | ||
.vscode | ||
.idea | ||
|
||
# mdbook generated output | ||
/book/book |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Clippy Book | ||
|
||
This is the source for the Clippy Book. See the | ||
[book](src/infrastructure/book.md) for more information. |
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 @@ | ||
[book] | ||
authors = ["The Rust Clippy Developers"] | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
title = "Clippy Documentation" | ||
|
||
[rust] | ||
edition = "2018" | ||
|
||
[output.html] | ||
edit-url-template = "https://github.com/rust-lang/rust-clippy/edit/master/book/{path}" | ||
git-repository-url = "https://github.com/rust-lang/rust-clippy/tree/master/book" | ||
mathjax-support = true | ||
site-url = "/rust-clippy/" | ||
|
||
[output.html.playground] | ||
editable = true | ||
line-numbers = true | ||
|
||
[output.html.search] | ||
boost-hierarchy = 2 | ||
boost-paragraph = 1 | ||
boost-title = 2 | ||
expand = true | ||
heading-split-level = 2 | ||
limit-results = 20 | ||
use-boolean-and = true |
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,34 @@ | ||
# Clippy | ||
|
||
[![Clippy Test](https://github.com/rust-lang/rust-clippy/workflows/Clippy%20Test/badge.svg?branch=auto&event=push)](https://github.com/rust-lang/rust-clippy/actions?query=workflow%3A%22Clippy+Test%22+event%3Apush+branch%3Aauto) | ||
[![License: MIT OR Apache-2.0](https://img.shields.io/crates/l/clippy.svg)](#license) | ||
|
||
A collection of lints to catch common mistakes and improve your | ||
[Rust](https://github.com/rust-lang/rust) code. | ||
|
||
[There are over 500 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) | ||
|
||
Lints are divided into categories, each with a default [lint | ||
level](https://doc.rust-lang.org/rustc/lints/levels.html). You can choose how | ||
much Clippy is supposed to ~~annoy~~ help you by changing the lint level by | ||
category. | ||
|
||
| Category | Description | Default level | | ||
| --------------------- | ----------------------------------------------------------------------------------- | ------------- | | ||
| `clippy::all` | all lints that are on by default (correctness, suspicious, style, complexity, perf) | **warn/deny** | | ||
| `clippy::correctness` | code that is outright wrong or useless | **deny** | | ||
| `clippy::suspicious` | code that is most likely wrong or useless | **warn** | | ||
| `clippy::complexity` | code that does something simple but in a complex way | **warn** | | ||
| `clippy::perf` | code that can be written to run faster | **warn** | | ||
| `clippy::style` | code that should be written in a more idiomatic way | **warn** | | ||
| `clippy::pedantic` | lints which are rather strict or might have false positives | allow | | ||
| `clippy::nursery` | new lints that are still under development | allow | | ||
| `clippy::cargo` | lints for the cargo manifest | allow | | allow | | ||
|
||
More to come, please [file an | ||
issue](https://github.com/rust-lang/rust-clippy/issues) if you have ideas! | ||
|
||
The [lint list](https://rust-lang.github.io/rust-clippy/master/index.html) also | ||
contains "restriction lints", which are for things which are usually not | ||
considered "bad", but may be useful to turn on in specific cases. These should | ||
be used very selectively, if at all. |
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,23 @@ | ||
# Summary | ||
|
||
[Introduction](README.md) | ||
|
||
- [Installation](installation.md) | ||
- [Usage](usage.md) | ||
- [Configuration](configuration.md) | ||
- [Clippy's Lints](lints.md) | ||
- [Continuous Integration](continuous_integration/README.md) | ||
- [GitHub Actions](continuous_integration/github_actions.md) | ||
- [Travis CI](continuous_integration/travis.md) | ||
- [Development](development/README.md) | ||
- [Basics](development/basics.md) | ||
- [Adding Lints](development/adding_lints.md) | ||
- [Common Tools](development/common_tools_writing_lints.md) | ||
- [Infrastructure](development/infrastructure/README.md) | ||
- [Syncing changes between Clippy and rust-lang/rust](development/infrastructure/sync.md) | ||
- [Backporting Changes](development/infrastructure/backport.md) | ||
- [Updating the Changelog](development/infrastructure/changelog_update.md) | ||
- [Release a New Version](development/infrastructure/release.md) | ||
- [The Clippy Book](development/infrastructure/book.md) | ||
- [Proposals](development/proposals/README.md) | ||
- [Roadmap 2021](development/proposals/roadmap-2021.md) |
Oops, something went wrong.