Add how-to-lint rules to README-dev.md and CLAUDE.md (#2175)

This commit is contained in:
John Kerl 2026-07-07 15:00:29 -04:00 committed by GitHub
parent e0ed7e469c
commit 06eb706055
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 2 deletions

View file

@ -79,6 +79,11 @@ fmt format:
staticcheck:
staticcheck ./pkg/... ./cmd/mlr/...
# Needs first: https://golangci-lint.run/welcome/install/#local-installation
# Config lives in .golangci.yml; same invocation as .github/workflows/golangci-lint.yml
lint:
golangci-lint run ./cmd/mlr ./pkg/...
# ----------------------------------------------------------------
# For developers before pushing to GitHub.
#
@ -125,4 +130,4 @@ release_tarball release-tarball: build check
# ================================================================
# Go does its own dependency management, outside of make.
.PHONY: build mlr check unit_test regression_test bench fmt staticcheck dev docs man
.PHONY: build mlr check unit_test regression_test bench fmt staticcheck lint dev docs man