From 25d54940a6b6c7b1ac070f6cba027df8e9eb5597 Mon Sep 17 00:00:00 2001 From: Piotr Semenov Date: Sun, 19 May 2024 23:38:16 +0400 Subject: [PATCH] fix: use contentName while calculate coverage --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8b79ff2..56a6d2d 100644 --- a/Makefile +++ b/Makefile @@ -115,9 +115,9 @@ $(BUILD_DIR)parigp.sublime-tooltip: $(BUILD_DIR)gp_commands.tsv $(ROOT_DIR)images/coverage-badge.svg: $(eval REFS := $(shell yq \ - '[.. | select(has("name") and .name != "PARI/GP") | .name] | @tsv' \ + '[.. | select(has("name") or has("contentName") and .name != "PARI/GP") | "\(.name) \(.contentName)"] | @tsv' \ $(ROOT_DIR)src/*.YAML-tmLanguage* |\ - xargs -n1 | sort | uniq)) + xargs -n1 | grep -v null | sort | uniq)) $(eval SCOPES_UNDER_TEST := $(shell tail -n+2 $(TEST_CASES) |\ grep -o 'source.parigp.*$$' |\ xargs -n1 | sort | uniq | grep -v source.parigp))