CppCXY / EmmyLuaCodeStyle

fast, powerful, and feature-rich Lua formatting and checking tool.
MIT License
140 stars 27 forks source link

--diagnosis-as-error when using --workspace #184

Closed alex-courtis closed 2 months ago

alex-courtis commented 2 months ago

CodeFormat check --diagnosis-as-error -w ... does not exit -1 when a warning/error is found.

CodeFormat check --diagnosis-as-error -f foo.lua does exit -1

This always returns true: https://github.com/CppCXY/EmmyLuaCodeStyle/blob/ebcd76a256ad5b36b9645ae89ca17360bafbdc2a/CodeFormat/src/LuaCheck.cpp#L113

alex-courtis commented 2 months ago

Use case: running check in CI