2023-06-02 04:41:57 -05:00
|
|
|
warning: error reading Clippy's configuration file: deprecated field `cyclomatic-complexity-threshold`. Please use `cognitive-complexity-threshold` instead
|
2024-02-27 08:25:18 -06:00
|
|
|
--> $DIR/tests/ui-toml/conf_deprecated_key/clippy.toml:2:1
|
2023-06-02 04:41:57 -05:00
|
|
|
|
|
|
|
|
LL | cyclomatic-complexity-threshold = 2
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-02-22 19:19:50 -06:00
|
|
|
|
2023-06-02 04:41:57 -05:00
|
|
|
warning: error reading Clippy's configuration file: deprecated field `blacklisted-names`. Please use `disallowed-names` instead
|
2024-02-27 08:25:18 -06:00
|
|
|
--> $DIR/tests/ui-toml/conf_deprecated_key/clippy.toml:3:1
|
2023-06-02 04:41:57 -05:00
|
|
|
|
|
|
|
|
LL | blacklisted-names = [ "..", "wibble" ]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-08-11 12:42:16 -05:00
|
|
|
|
|
|
|
error: the function has a cognitive complexity of (3/2)
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/conf_deprecated_key/conf_deprecated_key.rs:6:4
|
2022-08-11 12:42:16 -05:00
|
|
|
|
|
|
|
|
LL | fn cognitive_complexity() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
|
2022-08-11 12:42:16 -05:00
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error; 2 warnings emitted
|
2019-02-22 19:19:50 -06:00
|
|
|
|