Skip to content

analysis: create header missing diagnostics on package pos #9

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

Merged
merged 2 commits into from
Apr 20, 2025

Conversation

joshuasing
Copy link
Owner

Change the position used in "missing license header" diagnostics to the position of the file's "package" keyword. This makes "// want" comments easier to manage in tests, and I believe it makes the diagnostic more useful and consistent.

Additionally, add an analysis test containing a build directive to reproduce golangci/golangci-lint#5751 (comment)

@joshuasing joshuasing added the type: refactor This improves existing functionality label Apr 19, 2025
@joshuasing joshuasing changed the title analysis: create missing diagnostic on package pos analysis: create header missing diagnostics on package pos Apr 19, 2025
@joshuasing joshuasing added this to the v0.4.0 milestone Apr 20, 2025
@joshuasing joshuasing merged commit 56c5594 into main Apr 20, 2025
6 checks passed
@joshuasing joshuasing deleted the joshua/report-on-package branch April 20, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor This improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant