selene-lib 0.30.0

A library for linting Lua code. You probably want selene instead.
Documentation
error[shadowing]: shadowing variable `x`
  ┌─ shadowing.lua:5:11
  │
1 │ local x = 1
  │       - previously defined here
  ·
5 │     local x = 3
  │           ^

error[shadowing]: shadowing variable `x`
  ┌─ shadowing.lua:6:11
  │
5 │     local x = 3
  │           - previously defined here
6 │     local x = 4
  │           ^

error[shadowing]: shadowing variable `foo`
   ┌─ shadowing.lua:16:20
   │
14 │ local function foo() end
   │                --- previously defined here
15 │ if true then
16 │     local function foo() end
   │                    ^^^