Skip to content

Commit 50c93bb

Browse files
committed
refactor(test): Move attribute to lint level
1 parent 7ac15f9 commit 50c93bb

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

tests/ui-internal/allow_incorrect_lint_formulations.rs

Lines changed: 0 additions & 22 deletions
This file was deleted.

tests/ui-internal/check_formulation.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ declare_tool_lint! {
3838
report_in_external_macro: true
3939
}
4040

41+
declare_tool_lint! {
42+
/// # What it does
43+
/// Detects uses of incorrect formulations (allowed with attribute)
44+
#[allow(clippy::almost_standard_lint_formulation)]
45+
#[clippy::version = "pre 1.29.0"]
46+
pub clippy::ALLOWED_INVALID,
47+
Warn,
48+
"One",
49+
report_in_external_macro: true
50+
}
51+
4152
declare_lint_pass!(Pass => [VALID, INVALID1, INVALID2]);
4253

4354
fn main() {}

0 commit comments

Comments
 (0)