about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-02-24 23:20:49 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-02-24 23:50:53 +0100
commit59750dceb8bb7a743efc4b4a84c3ea79e31791a5 (patch)
treeebb0d637e24e8638c2dd1580007bf4dfd0089b63 /src/test/codegen/src-hash-algorithm
parent454515040a580f72c9b6366ee7d46256cfb4246f (diff)
downloadrust-59750dceb8bb7a743efc4b4a84c3ea79e31791a5.tar.gz
rust-59750dceb8bb7a743efc4b4a84c3ea79e31791a5.zip
upper_case_acronyms: add optional aggressive mode and relax default
Moves the lint back from pedantic to style group.
The lint default now only warns on names that are completely capitalized, like "WORD"
and only if the name is longer than 2 chars (so that names where each of the letter represents a word are still distinguishable).
For example: FP (false positive) would still be "valid" and not warned about (but EOF would warn).

A "upper_case_acronyms_aggressive: true/false" config option was added that restores the original lint behaviour to warn
on any kind of camel case name that had more than one capital letter following another capital letter.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions