From 1c5fc2e4364063884f33b78f45f351201705fae4 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 27 Aug 2026 11:32:31 +0200 Subject: Tame the deadcode gate and remove dead web helpers Run deadcode with -test and without the vendored node_modules package so the check reports only genuinely unreachable code instead of test-only helpers and vendored functions. Remove the three web helpers it still flagged (formatBikeType, formatRideType, dataQualityURL) that had no callers. Apply the go fix modernizations the check gate performs (range-over-int loops and embedded-field composite literals) that the gate had rewritten in the working tree. --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mise.toml') diff --git a/mise.toml b/mise.toml index 8458570..eda8c5e 100644 --- a/mise.toml +++ b/mise.toml @@ -29,7 +29,7 @@ run = [ "go vet ./...", "go build ./...", "go test ./...", - "go tool deadcode ./...", + "go tool deadcode -test $(go list ./... | grep -v '/node_modules')", ] [tasks.build] -- cgit v1.3