selene
selene copied to clipboard
A blazing-fast modern Lua linter written in Rust
Should favor constants like `math.pi` over `3.14`. It should also work for both truncated and rounded numbers, so `3.141` and `3.142` should both lint. But `3.143` should not. It should...
Closes #279 This also standardizes handling for code suggestions. Instead of manually inserting `try:
```lua for _, thing in things do values[key] = thing end ``` ...where `key` is an upvalue and unmodified, and there's no differing branches (like a continue that would make...
## Explanation I would like selen to handle selene.toml's in subfolders. ## Example ```lua 📦project ┣ 📂spec ┃ ┣ 📜test_spec.lua -- should use /spec/selene.toml ┃ ┣ 📄busted.selene.yaml ┃ ┗ ⚙️selene.toml...
this would be useful for users of VSCodium and such so they don't have to manually download and update the vsix off the vscode marketplace https://open-vsx.org/
```lua local function test(x) x += 1 end ``` This counts x as used
```lua CFrame.identity:Inverse() -- standard library global `CFrame.identity` does not contain the field `Inverse` Vector2.xAxis:Dot(Vector2.yAxis) -- standard library global `Vector2.xAxis` does not contain the field `Dot` Vector3.xAxis:Dot(Vector3.yAxis) -- standard library global...
Feel free to close if you wish as I presume this is a nontrivial request. We're a lua 5.3 house, so I'd appreciate support for it.
There is this tool called [pre-commit](https://pre-commit.com) which supports creating and managing multi-language pre-commit hooks easily. I believe you only need to add a `.pre-commit-hooks.yaml` file to the repository and the...
```lua function consumer() call() end function call() end consumer() ``` gives the error ``` warning[unused_variable]: call is defined, but never used ┌─ selene-lib/tests/lints/unused_variable/use_before_def.lua:5:10 │ 5 │ function call() │ ^^^^...