Skip to content

chore(lint): fix pre-existing ST1005 capitalized error string#657

Closed
typefield wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
typefield:chfix/st1005-error-strings
Closed

chore(lint): fix pre-existing ST1005 capitalized error string#657
typefield wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
typefield:chfix/st1005-error-strings

Conversation

@typefield

Copy link
Copy Markdown
Contributor

Summary

  • What changed: Lowercased one error string flagged by staticcheck ST1005 in internal/generator/agentmetadata/metadata.go: "Agent hint directory is required""agent hint directory is required". Updated the one test (TestGenerateRequiresAgentHintDirectory) that asserts on this text.
  • Why: This is the only staticcheck finding on main. It is unrelated to any feature PR and CI does not currently enforce staticcheck (golangci-lint is disabled in ci.yml due to a Go-version incompatibility), so it has been lingering. Fixing it lets local make lint go fully green and re-enables the lint checklist item for contributors.

Verification

  • make lint — gofmt + go vet + staticcheck all pass (was: 1 ST1005 finding)
  • go test ./internal/generator/agentmetadata/TestGenerateRequiresAgentHintDirectory passes

Notes

staticcheck flags one pre-existing ST1005 finding on main:

  internal/generator/agentmetadata/metadata.go:372
  fmt.Errorf("Agent hint directory is required")
  -> fmt.Errorf("agent hint directory is required")

Go error strings must not be capitalized. Updates the one test that
asserts on this message text. No behavior change.

Verified: make lint (gofmt + go vet + staticcheck) passes.
@typefield

Copy link
Copy Markdown
Contributor Author

Folded into #656 (cherry-picked onto that branch as a separate commit). Closing this in favor of the single PR.

@typefield typefield closed this Jul 17, 2026
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