selene
selene copied to clipboard
A blazing-fast modern Lua linter written in Rust
With this change, if the `--config` flag is not specified, selene will search the current directory and all parent directories for a `selene.toml` file, rather than only looking in the...
The extension now lints on the files directly instead of forwarding text to let cli handle exclude.
Closes #573.
This PR: * add 20 lines of code, but it keep all the original checkings. * I've tried it to look as similar to the original code as possible. *...
# Expected Behavior Selene's VS Code extension should only lint files present in the workspace root. IE: given a workspace with the root `~/code/factorio/chunk-power` the extension should only lint files...
Selene should allow prefixing all of its configuration with a dot. [StyLua allows this.](https://github.com/JohnnyMorganz/StyLua#finding-the-configuration) This would aid with having developer tooling configurations being distinguished from ordinary source files.
These are all executed from the `selene-test` workspace. Works: ``` exclude = ["**/file.lua"] ``` ``` selene C:\Users\chris\OneDrive\Documents\selene-test\src\file.lua ``` Works: ``` exclude = ["src/**"] ``` ``` selene src/file.lua ``` Doesn't work:...
Currently Selene doesn't really like my usage of `goto` labels, as shown below. It'd be nice if it was supported. 
See [docs](https://github.com/Kampfkarren/selene/pull/548/files#diff-a6f098e5f68aea9be9769adc9f7b4fc4d3c1923ded1e667ccca6d32ccee0d703) for the lint behavior. ## NOTE There's a small false positive that should be fixed https://github.com/Kampfkarren/selene/pull/548/files#diff-a6f098e5f68aea9be9769adc9f7b4fc4d3c1923ded1e667ccca6d32ccee0d703R59
Closes: #375 Fixes selene prompting the user to update their version of selene, despite the user having declared a specific version.