Currently, make lint only runs golangci-lint, while CI runs four separate lint checks. The other three have no local equivalent, making it easy to miss issues that only surface after pushing.
CI Lint Checks vs. Local Availability
golangci-lint: available locally
cspell: no local target
commitlint: no local target
license-eye: no local target
Proposed Changes
- Add a unified Make target
Introduce a new target (e.g., make verify) that runs all CI linters, allowing contributors to catch issues locally before pushing, while still preserving individual targets for each check.
- Update CI to use Make targets
Modify CI workflows to call the same Make targets instead of invoking tools directly. This keeps local and CI behavior consistent and ensures linting changes are made in one place.
Currently,
make lintonly runsgolangci-lint, while CI runs four separate lint checks. The other three have no local equivalent, making it easy to miss issues that only surface after pushing.CI Lint Checks vs. Local Availability
golangci-lint: available locallycspell: no local targetcommitlint: no local targetlicense-eye: no local targetProposed Changes
Introduce a new target (e.g.,
make verify) that runs all CI linters, allowing contributors to catch issues locally before pushing, while still preserving individual targets for each check.Modify CI workflows to call the same Make targets instead of invoking tools directly. This keeps local and CI behavior consistent and ensures linting changes are made in one place.