Skip to content

Commit 6a4bb50

Browse files
committed
Update lint_configuration.md
1 parent ce22d32 commit 6a4bb50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

book/src/lint_configuration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Please use that command to update the file and do not edit it by hand.
1212
| [avoid-breaking-exported-api](#avoid-breaking-exported-api) | `true` |
1313
| [msrv](#msrv) | `None` |
1414
| [cognitive-complexity-threshold](#cognitive-complexity-threshold) | `25` |
15+
| [excessive-nesting-threshold](#excessive-nesting-threshold) | `10` |
1516
| [disallowed-names](#disallowed-names) | `["foo", "baz", "quux"]` |
1617
| [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"]` |
1718
| [too-many-arguments-threshold](#too-many-arguments-threshold) | `7` |
@@ -193,6 +194,14 @@ The maximum cognitive complexity a function can have
193194
* [cognitive_complexity](https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity)
194195

195196

197+
### excessive-nesting-threshold
198+
The maximum amount of nesting a block can reside in
199+
200+
**Default Value:** `10` (`u64`)
201+
202+
* [excessive_nesting](https://rust-lang.github.io/rust-clippy/master/index.html#excessive_nesting)
203+
204+
196205
### disallowed-names
197206
The list of disallowed names to lint about. NB: `bar` is not here since it has legitimate uses. The value
198207
`".."` can be used as part of the list to indicate, that the configured values should be appended to the

0 commit comments

Comments
 (0)