From 13f6bfd8c6ff85c109c493711ea830e32125a560 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 30 Mar 2020 17:35:58 +0200 Subject: [PATCH 1/3] Add a Makefile rule to export the findings as CSV --- xml/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xml/Makefile b/xml/Makefile index 321b5c3..ec85552 100644 --- a/xml/Makefile +++ b/xml/Makefile @@ -8,6 +8,7 @@ MV = mv -f RM = rm -f UNZIP = unzip WGET = wget +XSLTPROC= xsltproc --nonet --xinclude all: $(TARGETS) @@ -35,4 +36,7 @@ clean: distclean: clean $(RM) -- $(TARGETS) -.PHONY: clean distclean +export-csv: sample-report/source/report.xml + @$(XSLTPROC) "xslt/findings2csv.xsl" "sample-report/source/report.xml" + +.PHONY: clean distclean export-csv From b49ae659ea40adec648a4d867b3ba3cc0e17ea31 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 30 Mar 2020 17:38:52 +0200 Subject: [PATCH 2/3] Import findings2json.xsl This stylesheet outputs the findings from a report as JSON data. It should be useful already but like in the CSV export: - it assumes the finding IDs are in sequential order; - recommendations are expected as a single paragraph, an unordered list (