rust-lang/rust-clippy

upper_case_acronyms complains about full-capital identifiers

Open

#6,631 opened on Jan 23, 2021

View on GitHub
 (9 comments) (2 reactions) (1 assignee)Rust (1,391 forks)batch import
C-bugI-false-positivegood first issue

Repository metrics

Stars
 (10,406 stars)
PR merge metrics
 (Avg merge 19d 22h) (113 merged PRs in 30d)

Description

Lint name: upper_case_acronyms

I tried this code:

pub enum DIR {}

Checks for camel case name containing a capitalized acronym. but there is no camel-case here, it's literally all uppercase, not sure why this triggers here then....

Contributor guide