Skip to content

TPT-4622: Re-enable cheap golangci-lint checks - #1031

Open
zliang-akamai wants to merge 3 commits into
mainfrom
zhiwei/tpt-4622-reenable-linters
Open

TPT-4622: Re-enable cheap golangci-lint checks#1031
zliang-akamai wants to merge 3 commits into
mainfrom
zhiwei/tpt-4622-reenable-linters

Conversation

@zliang-akamai

Copy link
Copy Markdown
Member

📝 Description

Re-enable errorlint, godox, inamedparam, and nolintlint so these cheap checks run in CI. Existing //nolint comments are normalized, wrapping fmt.Errorf calls use %w, and PagedResponse interface methods have named parameters.

✔️ How to Test

SKIP_DOCKER=1 make lint

Enable errorlint, godox, inamedparam, and nolintlint, and fix the
small findings those checks report.
Copilot AI lite review requested due to automatic review settings August 24, 2026 17:21
@zliang-akamai
zliang-akamai requested review from a team as code owners August 24, 2026 17:21
@zliang-akamai zliang-akamai added the repo-ci-improvement for improvements in the repository or CI workflow in the changelog. label Aug 24, 2026
@zliang-akamai
zliang-akamai requested review from mawilk90 and yec-akamai and removed request for a team August 24, 2026 17:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Re-enables selected cheap golangci-lint checks and updates affected Go code.

Changes:

  • Re-enables errorlint, godox, inamedparam, and nolintlint.
  • Updates error wrapping, //nolint directives, and interface parameter names.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Summary
waitfor.go Updates error wrapping and lint directives.
request_helpers.go Normalizes the funlen directive.
pagination.go Names interface parameters and normalizes directives.
client.go Updates error wrapping and lint directives.
.golangci.yml Re-enables four linters; existing @TODO comments will cause godox failures and require removal or suppression.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .golangci.yml
zliang-akamai and others added 2 commits August 24, 2026 14:31
Bare //nolint is rewritten by gofumpt to // nolint, which then fails
nolintlint. Name the suppressed linters so CI format and lint agree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo-ci-improvement for improvements in the repository or CI workflow in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants