Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Dead code
run: |
DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.50.0 -test ./...)
DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.51.0 -test ./...)
if [ -n "$DEAD" ]; then echo "$DEAD"; exit 1; fi

- name: Vulnerabilities
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Shipped as linux/darwin binaries and a multi-arch `scratch` image on ghcr.io.
make check # ./scripts/pre-commit.sh, check-only (no mockery)
golangci-lint fmt --config .golangci.yml # gofumpt + goimports (prefix github.com/dombyte/solis)
golangci-lint run --config .golangci.yml
go run golang.org/x/tools/cmd/deadcode@v0.50.0 -test ./...
go run golang.org/x/tools/cmd/deadcode@v0.51.0 -test ./...
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
go tool mockery # regenerate mocks (.mockery.yaml)
go test -race ./... # as in CI
Expand Down
2 changes: 1 addition & 1 deletion scripts/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ print_result $? "golangci-lint run"

# 3. Unused exported code (golangci's unused only sees unexported identifiers)
echo "Checking for dead code..."
DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.50.0 -test ./... 2>&1)
DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.51.0 -test ./... 2>&1)
if [ -n "$DEAD" ]; then
echo "$DEAD"
print_result 1 "deadcode"
Expand Down
Loading