rustc_lint::nonstandard_style

Static NON_UPPER_CASE_GLOBALS

source
pub static NON_UPPER_CASE_GLOBALS: &Lint
Expand description

The non_upper_case_globals lint detects static items that don’t have uppercase identifiers.

§Example

static max_points: i32 = 5;

{{produces}}

§Explanation

The preferred style is for static item names to use all uppercase letters such as MAX_POINTS.