error: variant name ends with the enum's name
- --> $DIR/enum_variants.rs:16:5
+ --> $DIR/enum_variants.rs:15:5
|
LL | cFoo,
| ^^^^
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
+error: all variants have the same prefix: `c`
+ --> $DIR/enum_variants.rs:14:1
+ |
+LL | / enum Foo {
+LL | | cFoo,
+LL | | cBar,
+LL | | cBaz,
+LL | | }
+ | |_^
+ |
+ = help: remove the prefixes and use full paths to the variants instead of glob imports
+
error: variant name starts with the enum's name
- --> $DIR/enum_variants.rs:27:5
+ --> $DIR/enum_variants.rs:26:5
|
LL | FoodGood,
| ^^^^^^^^
error: variant name starts with the enum's name
- --> $DIR/enum_variants.rs:28:5
+ --> $DIR/enum_variants.rs:27:5
|
LL | FoodMiddle,
| ^^^^^^^^^^
error: variant name starts with the enum's name
- --> $DIR/enum_variants.rs:29:5
+ --> $DIR/enum_variants.rs:28:5
|
LL | FoodBad,
| ^^^^^^^
error: all variants have the same prefix: `Food`
- --> $DIR/enum_variants.rs:26:1
+ --> $DIR/enum_variants.rs:25:1
|
LL | / enum Food {
LL | | FoodGood,
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: all variants have the same prefix: `CallType`
- --> $DIR/enum_variants.rs:36:1
+ --> $DIR/enum_variants.rs:35:1
|
LL | / enum BadCallType {
LL | | CallTypeCall,
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: all variants have the same prefix: `Constant`
- --> $DIR/enum_variants.rs:48:1
+ --> $DIR/enum_variants.rs:47:1
|
LL | / enum Consts {
LL | | ConstantInt,
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
-error: all variants have the same prefix: `With`
- --> $DIR/enum_variants.rs:82:1
+error: all variants have the same prefix: `C`
+ --> $DIR/enum_variants.rs:59:1
+ |
+LL | / enum Something {
+LL | | CCall,
+LL | | CCreate,
+LL | | CCryogenize,
+LL | | }
+ | |_^
+ |
+ = help: remove the prefixes and use full paths to the variants instead of glob imports
+
+error: all variants have the same prefix: `WithOut`
+ --> $DIR/enum_variants.rs:81:1
|
LL | / enum Seallll {
LL | | WithOutCake,
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
-error: all variants have the same prefix: `Prefix`
- --> $DIR/enum_variants.rs:88:1
+error: all variants have the same postfix: `IData`
+ --> $DIR/enum_variants.rs:136:1
|
-LL | / enum NonCaps {
-LL | | Prefix的,
-LL | | PrefixTea,
-LL | | PrefixCake,
+LL | / enum IDataRequest {
+LL | | PutIData(String),
+LL | | GetIData(String),
+LL | | DeleteUnpubIData(String),
LL | | }
| |_^
|
- = help: remove the prefixes and use full paths to the variants instead of glob imports
+ = help: remove the postfixes and use full paths to the variants instead of glob imports
-error: all variants have the same prefix: `With`
- --> $DIR/enum_variants.rs:94:1
+error: all variants have the same postfix: `HIData`
+ --> $DIR/enum_variants.rs:142:1
|
-LL | / pub enum PubSeall {
-LL | | WithOutCake,
-LL | | WithOutTea,
-LL | | WithOut,
+LL | / enum HIDataRequest {
+LL | | PutHIData(String),
+LL | | GetHIData(String),
+LL | | DeleteUnpubHIData(String),
LL | | }
| |_^
|
- = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
+ = help: remove the postfixes and use full paths to the variants instead of glob imports
+
+error: all variants have the same prefix: `_Type`
+ --> $DIR/enum_variants.rs:162:5
+ |
+LL | / enum DoLint {
+LL | | _TypeCreate,
+LL | | _TypeRead,
+LL | | _TypeUpdate,
+LL | | _TypeDestroy,
+LL | | }
+ | |_____^
+ |
= help: remove the prefixes and use full paths to the variants instead of glob imports
-error: aborting due to 10 previous errors
+error: all variants have the same postfix: `Type`
+ --> $DIR/enum_variants.rs:169:5
+ |
+LL | / enum DoLintToo {
+LL | | _CreateType,
+LL | | _UpdateType,
+LL | | _DeleteType,
+LL | | }
+ | |_____^
+ |
+ = help: remove the postfixes and use full paths to the variants instead of glob imports
+
+error: aborting due to 14 previous errors