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

comment-spacings false positive for /**/ style comments #795

Open
s3rj1k opened this issue Feb 21, 2023 · 2 comments
Open

comment-spacings false positive for /**/ style comments #795

s3rj1k opened this issue Feb 21, 2023 · 2 comments

Comments

@s3rj1k
Copy link

s3rj1k commented Feb 21, 2023

comment-spacings for some reason is triggered not only for // comments but also for /**/ style comments.
Without the ability to disable this behavior this linter is pretty-much unusable when code has a lot of multi-line comments.

@chavacava
Copy link
Collaborator

Hi @s3rj1k thanks for filling the issue.

My understanding is that you want no linter warning on comments like

/*There is no space between * and T */

?

(If the this rule is too noisy, you can disable it until this issue is closed)

@s3rj1k
Copy link
Author

s3rj1k commented Feb 21, 2023

@chavacava Thanks for quick ping-back.

I am using IDE and multi-line comments that contain dots are getting autoformated from /* ... */ to

/*
-->TAB Text.
-->TAB More text.
*/

Also considering some of my code has really big comments within /* ... */, some quotes from Linux kernel for example, it would be nice to have some flag to disable processing /* ... */ style comments entirely.

P.S. Not directly related to this issue but //nolint should be whitelisted by default, can be configured so not a big issue.

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

No branches or pull requests

3 participants