LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.26k stars 306 forks source link

Command-line interface / list diagnostics for project #2362

Closed 9999years closed 11 months ago

9999years commented 11 months ago

Hello! I'd like to annotate my Lua project with LuaCATS type annotations. I'd like to confirm that these type annotations are correct as part of the build.

Right now I can only get the diagnostics and type errors by using lua-language-server with a language server client.

I'd like to have some command-line interface, for example lua-language-server check, that I can use to list all the diagnostics that lua-language-server finds in the project. Then I can check that the list of diagnostics is empty and fail CI appropriately.

I am interested in contributing this feature, but I haven't written any code yet.

9999years commented 11 months ago

Oops, this is already supported: https://luals.github.io/wiki/diagnosis-report/