slippy-cli 0.1.0

AI Linter for Rust projects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
warning: `role` is a string value used as an enum-like discriminator, consider creating an enum instead
   ╭▸ examples/lints/string_used_as_enum/if_else.rs:12:5
   │
12 │ ┏     if role == "system" {
13 │ ┃         println!("Hello System");
14 │ ┃         return true;
15 │ ┃     } else if role == "admin" {
   ‡ ┃
22 │ ┃         panic!("Invalid role")
23 │ ┃     }
   │ ┗━━━━━┛ string is used as an enum discriminator here
   │
   ╰ help: for further information visit https://sliman4.github.io/slippy/index.html#string_used_as_enum
note: `warn(slippy::string_used_as_enum)` on by default