Skip to content

Commit

Permalink
added staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mogresta committed Jan 29, 2025
1 parent caf118d commit 0ee3d08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 0ee3d08

Please sign in to comment.