Skip to content

docs: backfill Go doc comments for exported symbols - #214

Open
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:docs/backfill-exported-docs
Open

docs: backfill Go doc comments for exported symbols#214
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:docs/backfill-exported-docs

Conversation

@iamlasse

@iamlasse iamlasse commented Aug 14, 2026

Copy link
Copy Markdown

Summary

Backfills Go doc comments for every previously-undocumented exported symbol across the codebase, plus a command-level package doc for provider-calibration. All changes are comment-only and gofmt-aligned.

Scope

A repo-wide AST doc-checker (go/ast) enumerated the authoritative set of undocumented exported symbols. This PR documents all of them, bringing the undocumented-exported count to 0.

Package doc

  • cmd/provider-calibration/main.go — added // Command provider-calibration ... package doc (the only package lacking one).

Exported-symbol doc comments (by file)

  • cmd/nightshift/commands/install.goServiceLaunchd, ServiceSystemd, ServiceCron
  • internal/config/config.goDefault* consts, Err* validation vars
  • internal/integrations/integrations.goHint* consts
  • internal/orchestrator/events.goEvent* consts
  • internal/orchestrator/orchestrator.goDefaultAgentTimeout, DefaultMaxIterations, Status* consts
  • internal/scheduler/scheduler.goErr* vars
  • internal/security/audit.goAudit* consts
  • internal/security/credentials.goEnv* consts, Err* vars
  • internal/security/security.goOp* consts
  • internal/setup/presets.goPreset* consts
  • internal/tasks/tasks.goCost*, Risk*, and all Task* type consts

Each grouped const/var block now carries a per-symbol doc comment that starts with the symbol's own name, per Go idiom.

Verification

  • gofmt -l clean
  • go build ./...
  • go vet ./...
  • go test ./... ✅ (all packages pass)
  • AST doc-checker reports 0 undocumented exported symbols

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift

🤖 Generated with Claude Code


Automated by nightshift

iamlasse and others added 2 commits June 28, 2026 02:10
Add internal/commits with pure Normalize/validate functions enforcing the project's Conventional Commits rules (known type set, lowercase type, lowercase subject, 72-char subject limit, whitespace trimming, and 72-column body wrapping). Wire it into the CLI as 'nightshift commit normalize' (positional, --file, and stdin sources; --check to validate only), ship a commit-msg git hook under scripts/, and document the format and installation in docs/commit-messages.md.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
Add Go doc comments to every previously-undocumented exported symbol
(consts, vars, and command doc) across the codebase. Comments are purely
additive and gofmt-aligned; grouped const/var blocks now carry a
per-symbol doc comment.

Files covered: - cmd/nightshift/commands/install.go
(ServiceLaunchd/Systemd/Cron) - cmd/provider-calibration/main.go
(package command doc) - internal/config/config.go (Default*, Err*) -
internal/integrations/integrations.go (Hint*) -
internal/orchestrator/events.go (Event*) -
internal/orchestrator/orchestrator.go (DefaultAgentTimeout, Status*) -
internal/scheduler/scheduler.go (Err*) - internal/security/audit.go
(Audit*) - internal/security/credentials.go (Env*, Err*) -
internal/security/security.go (Op*) - internal/setup/presets.go
(Preset*) - internal/tasks/tasks.go (Cost*, Risk*, Task*)

Verification: gofmt clean, go build ./... and go vet ./... pass, go test
./... passes, and the AST doc-checker reports zero undocumented exported
symbols.

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift

Co-Authored-By: Claude <noreply@anthropic.com>
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