From 48f81a798e3e7cd57d663920df0ee8ad003ef07f Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Wed, 26 May 2021 16:10:30 +0200 Subject: [PATCH] fix cloc --- cloc/run-cloc.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cloc/run-cloc.sh b/cloc/run-cloc.sh index 15422cd..56f3d93 100755 --- a/cloc/run-cloc.sh +++ b/cloc/run-cloc.sh @@ -6,6 +6,9 @@ then : else +# remove previous results +rm *-result.txt + # --force-lang=Java,jrag --force-lang=Java,jadd DEF_FILE=my_definitions.txt echo "Export language definitions" @@ -17,11 +20,14 @@ done echo "Running cloc with new definitions" # --ignored=bad-files.txt CLOC_CMD="cloc --exclude-lang=JSON --read-lang-def=my_definitions.txt --exclude-list-file=.clocignore --quiet" -$CLOC_CMD --report-file=place-result.txt ../ros3rag.place?/src/main/ja* 2>>cloc-errors.log -$CLOC_CMD --report-file=common-result.txt ../ros3rag.common/src/main 2>>cloc-errors.log - -$CLOC_CMD --report-file=place-gen-result.txt ../ros3rag.place?/src/gen 2>>cloc-errors.log -$CLOC_CMD --report-file=common-gen-result.txt ../ros3rag.common/build/generated/source/proto/main 2>>cloc-errors.log +$CLOC_CMD --report-file=common-result.txt ../ros3rag.common/src/main/resources/jastadd ../ros3rag.common/src/main/java 2>>cloc-errors.log +$CLOC_CMD --report-file=placeA-result.txt ../ros3rag.placeA/src/main/ja* 2>>cloc-errors.log +$CLOC_CMD --report-file=placeB-result.txt ../ros3rag.placeB/src/main/ja* 2>>cloc-errors.log + +# $CLOC_CMD --report-file=base-gen-result.txt ../ros3rag.base/src/gen 2>>cloc-errors.log +$CLOC_CMD --report-file=placeA-gen-result.txt ../ros3rag.placeA/src/gen 2>>cloc-errors.log +$CLOC_CMD --report-file=placeB-gen-result.txt ../ros3rag.placeB/src/gen 2>>cloc-errors.log +$CLOC_CMD --report-file=common-gen-result.txt ../ros3rag.common/build/generated/source/proto/main/java/de 2>>cloc-errors.log # CFC_CMD='grep -o 'if'\|'for'\|'return'' -- GitLab