Skip to content

[docs]: Fix inaccurate and missing godoc comments - #210

Merged
pseudomuto merged 1 commit into
mainfrom
godoc-fixes
Oct 7, 2026
Merged

pseudomuto merged 1 commit into
mainfrom
godoc-fixes

Conversation

@pseudomuto

Copy link
Copy Markdown
Collaborator

Several doc comments have drifted from the code they describe. Some named identifiers no longer exist (rpc.Method, a CLI logger, perUpstream), many still described the per-upstream proxy and unix socket removed in #205, and a few stated the opposite of what the code does: GT/GTE/LT claimed NaN never passes when it always does, NamespacedVault.Open claimed to use its namespace, etc.

This corrects those against the current code, fills in the doc comments flagged as missing, and documents caller-visible constraints that were only discoverable by reading the implementation, such as NewKEKRegistry rejecting duplicate key IDs and KeyConfig's bounds.

Only comments change here.

@pseudomuto
pseudomuto requested a review from a team as a code owner October 7, 2026 14:59
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pseudomuto
pseudomuto added this pull request to stack #212 October 7, 2026 16:45
A number of doc comments had drifted from the code they describe. Some
named identifiers that no longer exist (rpc.Method, a CLI logger,
perUpstream), many still described the per-upstream proxy and unix
socket removed in #205, and a few stated the opposite of what the code
does: GT/GTE/LT claimed NaN never passes when it always does,
NamespacedVault.Open claimed to use its namespace, etc.

This corrects those against the current code, fills in the doc comments
flagged as missing, and documents caller-visible constraints that were
only discoverable by reading the implementation, such as NewKEKRegistry
rejecting duplicate key IDs and KeyConfig's bounds. It also drops a spec
reference and the remaining em-dashes.

Only comments change here.
@pseudomuto
pseudomuto merged commit ac4152f into main Oct 7, 2026
2 checks passed
@pseudomuto
pseudomuto deleted the godoc-fixes branch October 7, 2026 18:23
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.

3 participants