forge_lint/sol/info/
mod.rs
1use crate::sol::{EarlyLintPass, LateLintPass, SolLint};
2
3mod mixed_case;
4use mixed_case::{MIXED_CASE_FUNCTION, MIXED_CASE_VARIABLE};
5
6mod pascal_case;
7use pascal_case::PASCAL_CASE_STRUCT;
8
9mod screaming_snake_case;
10use screaming_snake_case::{SCREAMING_SNAKE_CASE_CONSTANT, SCREAMING_SNAKE_CASE_IMMUTABLE};
11
12mod imports;
13use imports::{UNALIASED_PLAIN_IMPORT, UNUSED_IMPORT};
14
15mod named_struct_fields;
16use named_struct_fields::NAMED_STRUCT_FIELDS;
17
18mod unsafe_cheatcodes;
19use unsafe_cheatcodes::UNSAFE_CHEATCODE_USAGE;
20
21register_lints!(
22 (PascalCaseStruct, early, (PASCAL_CASE_STRUCT)),
23 (MixedCaseVariable, early, (MIXED_CASE_VARIABLE)),
24 (MixedCaseFunction, early, (MIXED_CASE_FUNCTION)),
25 (ScreamingSnakeCase, early, (SCREAMING_SNAKE_CASE_CONSTANT, SCREAMING_SNAKE_CASE_IMMUTABLE)),
26 (Imports, early, (UNALIASED_PLAIN_IMPORT, UNUSED_IMPORT)),
27 (NamedStructFields, late, (NAMED_STRUCT_FIELDS)),
28 (UnsafeCheatcodes, early, (UNSAFE_CHEATCODE_USAGE))
29);