let upper_case_acronyms check the enum name
Signed-off-by: TennyZhuang <zty0826@gmail.com>
This commit is contained in:
parent
2be6c4ae5b
commit
bf18768219
3 changed files with 23 additions and 1 deletions
|
|
@ -114,6 +114,7 @@ impl LateLintPass<'_> for UpperCaseAcronyms {
|
|||
check_ident(cx, &it.ident, self.upper_case_acronyms_aggressive);
|
||||
},
|
||||
ItemKind::Enum(ref enumdef, _) => {
|
||||
check_ident(cx, &it.ident, self.upper_case_acronyms_aggressive);
|
||||
// check enum variants separately because again we only want to lint on private enums and
|
||||
// the fn check_variant does not know about the vis of the enum of its variants
|
||||
enumdef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue