Skip to content

[nightshift] lint-fix: remove dead code, improve error messages, add doc comments#2

Open
Microck wants to merge 1 commit intomainfrom
nightshift/lint-fix
Open

[nightshift] lint-fix: remove dead code, improve error messages, add doc comments#2
Microck wants to merge 1 commit intomainfrom
nightshift/lint-fix

Conversation

@Microck
Copy link
Copy Markdown
Owner

@Microck Microck commented Apr 2, 2026

Automated by Nightshift v3 (GLM 5.1).

Task: lint-fix
Category: pr
Changes:

  • Remove unused requestJSON/responseJSON variables in dashboard.go (dead code — detailJSON already contains the data)
  • Improve error wrapping in ratelimit/coerceInt — use %w for parse errors, include type info for unexpected types
  • Include the invalid value in UPSTREAM_TRANSPORT config error message
  • Add godoc comments to 12 exported types and functions across audit, auth, config, policy, ratelimit, storage, and ui packages

Build and go vet pass clean.

Merge if useful, close if not.

…doc comments

- Remove unused requestJSON/responseJSON in dashboard.go (dead code)
- Wrap parse errors in ratelimit/coerceInt with %%w for debugging
- Include invalid value in UPSTREAM_TRANSPORT error message
- Add godoc comments to 12 exported types and functions across
  audit, auth, config, policy, ratelimit, storage, and ui packages
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.

2 participants