Skip to content

Commit aeb4370

Browse files
committed
Update to #10656
1 parent 43c7a65 commit aeb4370

File tree

1 file changed

+17
-60
lines changed

1 file changed

+17
-60
lines changed

book/src/lint_configuration.md

+17-60
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,12 @@ This file is generated by `cargo collect-metadata`.
33
Please use that command to update the file and do not edit it by hand.
44
-->
55

6-
## Lint Configuration Options
7-
| <div style="width:290px">Option</div> | Default Value |
8-
|--|--|
9-
| [arithmetic-side-effects-allowed](#arithmetic-side-effects-allowed) | `{}` |
10-
| [arithmetic-side-effects-allowed-binary](#arithmetic-side-effects-allowed-binary) | `[]` |
11-
| [arithmetic-side-effects-allowed-unary](#arithmetic-side-effects-allowed-unary) | `{}` |
12-
| [avoid-breaking-exported-api](#avoid-breaking-exported-api) | `true` |
13-
| [msrv](#msrv) | `None` |
14-
| [cognitive-complexity-threshold](#cognitive-complexity-threshold) | `25` |
15-
| [disallowed-names](#disallowed-names) | `["foo", "baz", "quux"]` |
16-
| [semicolon-inside-block-ignore-singleline](#semicolon-inside-block-ignore-singleline) | `false` |
17-
| [semicolon-outside-block-ignore-multiline](#semicolon-outside-block-ignore-multiline) | `false` |
18-
| [doc-valid-idents](#doc-valid-idents) | `["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "DirectX", "ECMAScript", "GPLv2", "GPLv3", "GitHub", "GitLab", "IPv4", "IPv6", "ClojureScript", "CoffeeScript", "JavaScript", "PureScript", "TypeScript", "NaN", "NaNs", "OAuth", "GraphQL", "OCaml", "OpenGL", "OpenMP", "OpenSSH", "OpenSSL", "OpenStreetMap", "OpenDNS", "WebGL", "TensorFlow", "TrueType", "iOS", "macOS", "FreeBSD", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", "CamelCase"]` |
19-
| [too-many-arguments-threshold](#too-many-arguments-threshold) | `7` |
20-
| [type-complexity-threshold](#type-complexity-threshold) | `250` |
21-
| [single-char-binding-names-threshold](#single-char-binding-names-threshold) | `4` |
22-
| [too-large-for-stack](#too-large-for-stack) | `200` |
23-
| [enum-variant-name-threshold](#enum-variant-name-threshold) | `3` |
24-
| [enum-variant-size-threshold](#enum-variant-size-threshold) | `200` |
25-
| [verbose-bit-mask-threshold](#verbose-bit-mask-threshold) | `1` |
26-
| [literal-representation-threshold](#literal-representation-threshold) | `16384` |
27-
| [trivial-copy-size-limit](#trivial-copy-size-limit) | `None` |
28-
| [pass-by-value-size-limit](#pass-by-value-size-limit) | `256` |
29-
| [too-many-lines-threshold](#too-many-lines-threshold) | `100` |
30-
| [array-size-threshold](#array-size-threshold) | `512000` |
31-
| [vec-box-size-threshold](#vec-box-size-threshold) | `4096` |
32-
| [max-trait-bounds](#max-trait-bounds) | `3` |
33-
| [max-struct-bools](#max-struct-bools) | `3` |
34-
| [max-fn-params-bools](#max-fn-params-bools) | `3` |
35-
| [warn-on-all-wildcard-imports](#warn-on-all-wildcard-imports) | `false` |
36-
| [disallowed-macros](#disallowed-macros) | `[]` |
37-
| [disallowed-methods](#disallowed-methods) | `[]` |
38-
| [disallowed-types](#disallowed-types) | `[]` |
39-
| [unreadable-literal-lint-fractions](#unreadable-literal-lint-fractions) | `true` |
40-
| [upper-case-acronyms-aggressive](#upper-case-acronyms-aggressive) | `false` |
41-
| [matches-for-let-else](#matches-for-let-else) | `WellKnownTypes` |
42-
| [cargo-ignore-publish](#cargo-ignore-publish) | `false` |
43-
| [standard-macro-braces](#standard-macro-braces) | `[]` |
44-
| [enforced-import-renames](#enforced-import-renames) | `[]` |
45-
| [allowed-scripts](#allowed-scripts) | `["Latin"]` |
46-
| [enable-raw-pointer-heuristic-for-send](#enable-raw-pointer-heuristic-for-send) | `true` |
47-
| [max-suggested-slice-pattern-length](#max-suggested-slice-pattern-length) | `3` |
48-
| [await-holding-invalid-types](#await-holding-invalid-types) | `[]` |
49-
| [max-include-file-size](#max-include-file-size) | `1000000` |
50-
| [allow-expect-in-tests](#allow-expect-in-tests) | `false` |
51-
| [allow-unwrap-in-tests](#allow-unwrap-in-tests) | `false` |
52-
| [allow-dbg-in-tests](#allow-dbg-in-tests) | `false` |
53-
| [allow-print-in-tests](#allow-print-in-tests) | `false` |
54-
| [large-error-threshold](#large-error-threshold) | `128` |
55-
| [ignore-interior-mutability](#ignore-interior-mutability) | `["bytes::Bytes"]` |
56-
| [allow-mixed-uninlined-format-args](#allow-mixed-uninlined-format-args) | `true` |
57-
| [suppress-restriction-lint-in-const](#suppress-restriction-lint-in-const) | `false` |
58-
| [missing-docs-in-crate-items](#missing-docs-in-crate-items) | `false` |
59-
| [future-size-threshold](#future-size-threshold) | `16384` |
60-
| [unnecessary-box-size](#unnecessary-box-size) | `128` |
6+
# Lint Configuration Options
7+
8+
The following list shows each configuration option, along with a description, its default value, an example
9+
and lints affected.
10+
11+
---
6112

6213
## `arithmetic-side-effects-allowed`
6314
Suppress checking of the passed type names in all types of operations.
@@ -214,23 +165,29 @@ default configuration of Clippy. By default, any configuration will replace the
214165

215166
**Default Value:** `["foo", "baz", "quux"]` (`Vec<String>`)
216167

217-
* [disallowed_names](https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names)
168+
---
169+
**Affected lints:**
170+
* [`disallowed_names`](https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names)
218171

219172

220-
### semicolon-inside-block-ignore-singleline
173+
## `semicolon-inside-block-ignore-singleline`
221174
Whether to lint only if it's multiline.
222175

223176
**Default Value:** `false` (`bool`)
224177

225-
* [semicolon_inside_block](https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_inside_block)
178+
---
179+
**Affected lints:**
180+
* [`semicolon_inside_block`](https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_inside_block)
226181

227182

228-
### semicolon-outside-block-ignore-multiline
183+
## `semicolon-outside-block-ignore-multiline`
229184
Whether to lint only if it's singleline.
230185

231186
**Default Value:** `false` (`bool`)
232187

233-
* [semicolon_outside_block](https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block)
188+
---
189+
**Affected lints:**
190+
* [`semicolon_outside_block`](https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block)
234191

235192

236193
## `doc-valid-idents`

0 commit comments

Comments
 (0)