From 2c65d217f4e98da1b54425471888b308fe037f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffan=20S=C3=B8lvsten?= Date: Fri, 31 Oct 2025 21:21:31 +0100 Subject: [PATCH] Add a CLOC definition of Troupe This is (for now?) a mere copy of the SML definition --- Makefile | 8 ++++++++ cloc.txt | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 cloc.txt diff --git a/Makefile b/Makefile index 0012dafc..90712b56 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,14 @@ test/ci-relay: p2p-tools @echo "Running CI relay test..." ./tests/ci-relay-test.sh +CLOC_DIR=. +cloc: + cloc --read-lang-def=cloc.txt $(CLOC_DIR) +cloc/lib: + $(MAKE) cloc CLOC_DIR=lib +cloc/test: + $(MAKE) cloc CLOC_DIR=tests + dist: stack npm rt p2p-tools lib rm -rf ./build/ mkdir -p ./build/Troupe/rt/built diff --git a/cloc.txt b/cloc.txt new file mode 100644 index 00000000..e840e776 --- /dev/null +++ b/cloc.txt @@ -0,0 +1,6 @@ +Troupe + filter remove_between_general (* *) + extension trp + extension pico + extension picox + 3rd_gen_scale 3.00