From 512f23fff1c8261ce537578b519f0c313f0ba174 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Wed, 15 Apr 2020 13:22:50 +0200 Subject: [PATCH] Add test for zero single char names --- tests/ui-toml/zero_single_char_names/clippy.toml | 1 + tests/ui-toml/zero_single_char_names/zero_single_char_names.rs | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 tests/ui-toml/zero_single_char_names/clippy.toml create mode 100644 tests/ui-toml/zero_single_char_names/zero_single_char_names.rs diff --git a/tests/ui-toml/zero_single_char_names/clippy.toml b/tests/ui-toml/zero_single_char_names/clippy.toml new file mode 100644 index 00000000000..42a1067b95e --- /dev/null +++ b/tests/ui-toml/zero_single_char_names/clippy.toml @@ -0,0 +1 @@ +single-char-binding-names-threshold = 0 diff --git a/tests/ui-toml/zero_single_char_names/zero_single_char_names.rs b/tests/ui-toml/zero_single_char_names/zero_single_char_names.rs new file mode 100644 index 00000000000..22aaa242b9b --- /dev/null +++ b/tests/ui-toml/zero_single_char_names/zero_single_char_names.rs @@ -0,0 +1,3 @@ +#![warn(clippy::many_single_char_names)] + +fn main() {}