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

RFE: make comment checker check for unwanted spaces #1165

Open
scop opened this issue Dec 16, 2021 · 0 comments
Open

RFE: make comment checker check for unwanted spaces #1165

scop opened this issue Dec 16, 2021 · 0 comments

Comments

@scop
Copy link
Contributor

scop commented Dec 16, 2021

At least a subset of the pragmalike comments that are currently exempt from the "space after //" check are actually ones that must not have the space or they don't work properly at all, and even for ones that do work with the space, it's a widespread convention to not have the space in comments that are intended for machines to read.

Improving comment checker to not only ignore the "missing" space in them to actually flag an error if there are spaces there would be nice.

I think at least all //go:, //nolint, //+ should have this treatment, probably a bunch of others as well.

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

No branches or pull requests

1 participant