From 0ee3d083577564d4ad5f7f7a1c9a9693f24bf040 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 29 Jan 2025 13:26:20 +0100 Subject: [PATCH] added staticcheck --- .github/workflows/ci.yml | 6 ++++++ main.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d05dcee4d..50d7d1b775 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,9 @@ jobs: - name: Indentation run: test -z $(go fmt ./...) + + - name: Install staticcheck + run: go install honnef.co/go/tools/cmd/staticcheck@latest + + - name: Run staticcheck + run: staticcheck ./... diff --git a/main.go b/main.go index 19d7366c5f..c1966ec517 100644 --- a/main.go +++ b/main.go @@ -96,3 +96,9 @@ func main() { log.Printf("Serving on port: %s\n", port) log.Fatal(srv.ListenAndServe()) } + +func unused() { + // this function does nothing + // and is called nowhere +} +