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

checkers: commentFormatting: allow - in pragma tag names #1031

Merged
merged 2 commits into from Mar 15, 2021

Conversation

quasilyte
Copy link
Member

Fixes #1027

@@ -74,6 +74,6 @@ func (c *commentFormattingChecker) specialChar(r rune) bool {
}
}

func (c *commentFormattingChecker) warn(cg *ast.CommentGroup) {
c.ctx.Warn(cg, "put a space between `//` and comment text")
func (c *commentFormattingChecker) warn(comment *ast.Comment) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why so? :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a bug made before, but not sure.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, it would complain on the beginning of the comment block.
Now it should report the exact comment line instead.

@quasilyte quasilyte merged commit 87e1c9a into master Mar 15, 2021
@quasilyte quasilyte deleted the quasilyte/fix/commentformatting_1027 branch March 15, 2021 10: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.

commentFormatting complains about some directives
2 participants