Run check for missing CWE entries on travis.
This commit is contained in:
parent
749699c632
commit
39c2625789
|
@ -82,6 +82,8 @@ script:
|
|||
# - make validateXML doesn't work in this context unfortunately
|
||||
- ${CPPCHECK} --errorlist >/tmp/errorlist.xml
|
||||
- xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
|
||||
# check for missing CWE entries
|
||||
- make checkCWEEntries
|
||||
# check test/cfg
|
||||
- make checkcfg
|
||||
- make validateXML
|
||||
|
|
2
Makefile
2
Makefile
|
@ -344,6 +344,8 @@ validateXML: createXMLExamples
|
|||
xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
|
||||
xmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml
|
||||
|
||||
checkCWEEntries: /tmp/errorlist.xml
|
||||
./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml
|
||||
###### Build
|
||||
|
||||
$(SRCDIR)/analyzerinfo.o: lib/analyzerinfo.cpp lib/analyzerinfo.h lib/config.h lib/errorlogger.h lib/suppressions.h lib/importproject.h lib/platform.h lib/utils.h lib/path.h
|
||||
|
|
|
@ -440,6 +440,8 @@ int main(int argc, char **argv)
|
|||
fout << "validateXML: createXMLExamples\n";
|
||||
fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml\n";
|
||||
fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml\n";
|
||||
fout << "\ncheckCWEEntries: /tmp/errorlist.xml\n";
|
||||
fout << "\t./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml";
|
||||
|
||||
fout << "\n###### Build\n\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue