Skip to content

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