selene-lib 0.3.0

A library for linting Lua code. You probably want selene instead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[suspicious_reverse_loop]: this loop will only ever run once at most

   ┌── suspicious_reverse_loop.lua:1:9 ───
   │
 1 │ for _ = #x, 1 do
   │         ^^^^^
   │
   = help: try adding `, -1` after `1`

error[suspicious_reverse_loop]: this loop will only ever run once at most

   ┌── suspicious_reverse_loop.lua:4:9 ───
   │
 4 │ for _ = #x, 0 do
   │         ^^^^^
   │
   = help: try adding `, -1` after `1`