2021-02-24 16:41:32 -06:00
|
|
|
#![warn(clippy::upper_case_acronyms)]
|
|
|
|
|
|
|
|
struct HTTPResponse; // not linted by default, but with cfg option
|
|
|
|
|
|
|
|
struct CString; // not linted
|
|
|
|
|
|
|
|
enum Flags {
|
|
|
|
NS, // not linted
|
|
|
|
CWR,
|
|
|
|
ECE,
|
|
|
|
URG,
|
|
|
|
ACK,
|
|
|
|
PSH,
|
|
|
|
RST,
|
|
|
|
SYN,
|
|
|
|
FIN,
|
|
|
|
}
|
|
|
|
|
2021-03-01 11:53:33 -06:00
|
|
|
// linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
|
|
|
// `GccLlvmSomething`
|
|
|
|
struct GCCLLVMSomething;
|
2021-02-24 16:41:32 -06:00
|
|
|
|
2021-02-26 14:22:30 -06:00
|
|
|
// don't warn on public items
|
|
|
|
pub struct MIXEDCapital;
|
|
|
|
|
|
|
|
pub struct FULLCAPITAL;
|
|
|
|
|
2021-03-26 18:52:49 -05:00
|
|
|
// enum variants should not be linted if the num is pub
|
|
|
|
pub enum ParseError<T> {
|
|
|
|
FULLCAPITAL(u8),
|
|
|
|
MIXEDCapital(String),
|
|
|
|
Utf8(std::string::FromUtf8Error),
|
|
|
|
Parse(T, String),
|
|
|
|
}
|
|
|
|
|
|
|
|
// private, do lint here
|
|
|
|
enum ParseErrorPrivate<T> {
|
|
|
|
WASD(u8),
|
|
|
|
WASDMixed(String),
|
|
|
|
Utf8(std::string::FromUtf8Error),
|
|
|
|
Parse(T, String),
|
|
|
|
}
|
|
|
|
|
2021-02-24 16:41:32 -06:00
|
|
|
fn main() {}
|