slippy-cli 0.1.0

AI Linter for Rust projects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
warning: Unnecessary `contains` call on a collection being iterated over
  ╭▸ examples/lints/unnecessary_contains_in_loop/basic.rs:4:16
  │
4 │         if vec.contains(i) {
  │                ━━━━━━━━━━━ method always returns `true` unless modified while iterating
  │
  ╰ help: for further information visit https://sliman4.github.io/slippy/index.html#unnecessary_contains_in_loop
note: the collection is iterated here
  ╭▸ examples/lints/unnecessary_contains_in_loop/basic.rs:3:5
  │
3 │     for i in &vec {
  ╰╴    ━━━━━━━━━━━━━ iterating over this collection
help: try:
  ╭╴
4 -         if vec.contains(i) {
4 +         if true {
  ╰╴
note: `warn(slippy::unnecessary_contains_in_loop)` on by default