At parser.js line 64, if logWarning is called without a line number, it will call logWarningNoLine, which defaults to increaseErrorCount=true. The result (and the fix) are obvious. Warnings should not increase the error count.
The fix is line 76:
function logWarningNoLine(str,urgent, increaseErrorCount = true) {
should be
function logWarningNoLine(str,urgent, increaseErrorCount = false) {
At
parser.js
line 64, iflogWarning
is called without a line number, it will calllogWarningNoLine
, which defaults toincreaseErrorCount=true
. The result (and the fix) are obvious. Warnings should not increase the error count.The fix is line 76:
function logWarningNoLine(str,urgent, increaseErrorCount = true) {
should befunction logWarningNoLine(str,urgent, increaseErrorCount = false) {