Module: check_mk
Branch: master
Commit: bce7576fc3f851615080b9dfef2d839d464ec201
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bce7576fc3f851…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Apr 26 11:19:11 2019 +0200
Make Jenkins' Cppcheck plugin happy again.
Change-Id: I4112e6582982ddef06b893e422b8f586fe2fdc88
---
livestatus/src/Makefile.am | 2 ++
livestatus/src/test/Makefile.am | 2 ++
2 files changed, 4 insertions(+)
diff --git a/livestatus/src/Makefile.am b/livestatus/src/Makefile.am
index bdd3256..399857f 100644
--- a/livestatus/src/Makefile.am
+++ b/livestatus/src/Makefile.am
@@ -190,8 +190,10 @@ iwyu: compile_commands.json
cppcheck: compile_commands.json
$(CPPCHECK) -UCMC --enable=all --suppressions-list=cppcheck-suppressions.txt
--inline-suppr --project=compile_commands.json --quiet --template=gcc
+# We need to mangle the result a bit to make Jenkins' Cppcheck plugin happy
cppcheck-xml: compile_commands.json
$(CPPCHECK) -UCMC --enable=all --suppressions-list=cppcheck-suppressions.txt
--inline-suppr --project=compile_commands.json --quiet --template=gcc --xml
--xml-version=2 2> cppcheck-result.xml
+ sed -i "s%\\(<location file=\"\\)%\\1$(subdir)/%" cppcheck-result.xml
documentation:
$(DOXYGEN) doc/Doxyfile
diff --git a/livestatus/src/test/Makefile.am b/livestatus/src/test/Makefile.am
index e8a4ab5..1a5df70 100644
--- a/livestatus/src/test/Makefile.am
+++ b/livestatus/src/test/Makefile.am
@@ -91,5 +91,7 @@ iwyu: compile_commands.json
cppcheck: compile_commands.json
$(CPPCHECK) -UCMC --enable=all --suppressions-list=../cppcheck-suppressions.txt
--inline-suppr --project=compile_commands.json --quiet --template=gcc
+# We need to mangle the result a bit to make Jenkins' Cppcheck plugin happy
cppcheck-xml: compile_commands.json
$(CPPCHECK) -UCMC --enable=all --suppressions-list=../cppcheck-suppressions.txt
--inline-suppr --project=compile_commands.json --quiet --template=gcc --xml
--xml-version=2 2> cppcheck-result.xml
+ sed -i "s%\\(<location file=\"\\)%\\1$(subdir)/%" cppcheck-result.xml