Closed alex-courtis closed 2 months ago
CodeFormat check --diagnosis-as-error -w ... does not exit -1 when a warning/error is found.
CodeFormat check --diagnosis-as-error -w ...
CodeFormat check --diagnosis-as-error -f foo.lua does exit -1
CodeFormat check --diagnosis-as-error -f foo.lua
This always returns true: https://github.com/CppCXY/EmmyLuaCodeStyle/blob/ebcd76a256ad5b36b9645ae89ca17360bafbdc2a/CodeFormat/src/LuaCheck.cpp#L113
Use case: running check in CI
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 -1This always returns true: https://github.com/CppCXY/EmmyLuaCodeStyle/blob/ebcd76a256ad5b36b9645ae89ca17360bafbdc2a/CodeFormat/src/LuaCheck.cpp#L113