Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/9999years/lualscheck
https://github.com/9999years/lualscheck
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/9999years/lualscheck
- Owner: 9999years
- Created: 2023-10-11T22:49:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-11T23:54:41.000Z (about 1 year ago)
- Last Synced: 2024-10-08T09:44:55.594Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CLI diagnostic client for `lua-language-server`
[`lua-language-server`][luals] contains a nice type checker and linter, but no
way to use it. You can run `lua-language-server --check my-project-dir`, but
it'll write the diagnostics in a clumsy JSON format in some random log
directory. It also writes diagnostics for all library files, not just files
under your project root.The latter problem could be solved with [my PR to add a `--check_out_path` CLI
argument][check_out_path], but that doesn't solve the issue of clumsy JSON
diagnostics.`lualscheck` runs `lua-language-server --check your-project-dir`, reads the
diagnostics, formats them nicely, and prints out the ones from files under your
project directory.You can filter the level of diagnostics to show and the level of diagnostics to
error on.[luals]: https://github.com/LuaLS/lua-language-server
[check_out_path]: https://github.com/LuaLS/lua-language-server/pull/2364```ShellSession
$ lualscheck
Diagnosis complete, 10 problems found, see /Users/wiggles/.cache/lua-language-server/log/check.jsonlua/broot/init.lua:67:27 [miss-symbol]
error: Missed symbol `}`.Error: × lua-language-server found 1 problems
```