linting (with failing code)

This commit is contained in:
2025-03-16 13:36:53 +02:00
parent 03839c65a0
commit 6ab3c33a1c
2 changed files with 13 additions and 0 deletions

View File

@@ -34,5 +34,13 @@ jobs:
with:
go-version: "1.23.0"
- name: Install staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: "latest"
- name: Style
run: test -z $(go fmt ./...)
- name: Linting
run: test -z $(go fmt ./...)

View File

@@ -96,3 +96,8 @@ func main() {
log.Printf("Serving on port: %s\n", port)
log.Fatal(srv.ListenAndServe())
}
func unused() {
// this function does nothing
// and is called nowhere
}