I realized right now that chktex has return code 0 only if not even a warning is displayed. With warnings seems to be 2. What about other return codes? 1 for instance? The documentation keeps this secret.
Asked
Active
Viewed 80 times
0
`* Count how warnings or errors we've found, and
switch (LaTeXMsgs[Error].Type)
case etWarn: WarnPrint++; FoundErr = max(FoundErr, EXIT_WARNINGS); break; case etErr: ErrPrint++; FoundErr = max(FoundErr, EXIT_ERRORS); break; case etMsg: break;
...
ret = FindErr(ReadBuffer, CurStkLine(&InputStack)); if ( ret != EXIT_SUCCESS ) { retval = ret; ... return retval; `
so it looks like the exit code is a warning count, but I get 2 or 0 in all cases
– David Carlisle Jun 09 '23 at 18:38