upper_case_acronyms: don't warn on public items
Fixes #6803 changelog: upper_case_acronyms: ignore public items
This commit is contained in:
parent
6343446b89
commit
9dba6a9fde
3 changed files with 12 additions and 1 deletions
|
|
@ -19,4 +19,9 @@ enum Flags {
|
|||
struct GCCLLVMSomething; // linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
||||
// `GccLlvmSomething`
|
||||
|
||||
// don't warn on public items
|
||||
pub struct MIXEDCapital;
|
||||
|
||||
pub struct FULLCAPITAL;
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -19,4 +19,8 @@ enum Flags {
|
|||
struct GCCLLVMSomething; // linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
||||
// `GccLlvmSomething`
|
||||
|
||||
// public items must not be linted
|
||||
pub struct NOWARNINGHERE;
|
||||
pub struct ALSONoWarningHERE;
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue