Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc tool flags missing annotations on variable declarations #1812

Closed
stephanos opened this issue Feb 10, 2025 · 0 comments · Fixed by #1819
Closed

Doc tool flags missing annotations on variable declarations #1812

stephanos opened this issue Feb 10, 2025 · 0 comments · Fixed by #1819

Comments

@stephanos
Copy link
Contributor

Expected Behavior

Running internal/cmd/build/main.go via go run . check fails if there's a doc comment on a function variable declaration without Exposed as:.

Actual Behavior

It should ignore variable declarations in functions.

Steps to Reproduce the Problem

For example:

// If the priority only contains default values, return nil instead
// - since there's no need to send the default values to the server.
var defaultPriority Priority

See 5ff0c1c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant