Skip to content

fix(ci): update golangci-lint config and regenerate docs#4

Merged
eskp merged 6 commits intomainfrom
fix/ci-lint-docs
Mar 13, 2026
Merged

fix(ci): update golangci-lint config and regenerate docs#4
eskp merged 6 commits intomainfrom
fix/ci-lint-docs

Conversation

@eskp
Copy link
Copy Markdown
Contributor

@eskp eskp commented Mar 13, 2026

Summary

  • Move exclude-rules to linters.exclusions.rules (golangci-lint v2.11+ schema change)
  • Regenerate docs to include kh_update command
  • Add missing cobra/doc dependency for docs generation

Test plan

  • CI lint and docs-check jobs should pass

eskp added 6 commits March 13, 2026 20:01
- Move exclude-rules to linters.exclusions.rules (golangci-lint v2.11+)
- Regenerate docs to include kh_update command
- Add missing cobra/doc dependency for docs generation
- gosimple merged into staticcheck in golangci-lint v2, no longer valid
- docs-check: cd docs broke git diff path; use go generate ./docs/ instead
These return values are universally ignored in CLI code -- writing to
stdout/stderr and closing HTTP response bodies.
Previous config used default:standard which pulled in revive and gofmt
checks the codebase was never written against. Start with core linters
(errcheck, govet, staticcheck, unused, ineffassign) and add more later.
- Remove unused validConfigKeys var
- Fix ineffectual assignment in pause_test.go
- Lowercase error strings per Go convention (ST1005)
- Remove trailing punctuation from error strings
- Replace deprecated cobra.ExactValidArgs with MatchAll
@eskp eskp merged commit 5fbaece into main Mar 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant