Subject: check-declare-files does not include malformed declarations in the list

From: Neil Okamoto <[email-masked]>
Date: Sun, 22 Mar 2020 17:31:03 -0700

As noted in the subject line: malformed declarations are noted by ‘check-declare-scan’ which logs a message in the ‘check-declare-warning-buffer’.  However that malformed declaration is not passed back to 'check-declare-files’, and therefore its not part of the error list returned from that function.

Software that uses  'check-declare-files' as a lint check would have to parse the warning buffer (an additional step) in order to catch these malformed declarations.