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

Remove added colon in comment-spacings rule #981

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

gfariasalves-ionos
Copy link
Contributor

@gfariasalves-ionos gfariasalves-ionos commented Apr 18, 2024

Please, describe in details what's your motivation for this PR:

Some projects like Kubebuilder have markers that do not follow the pattern //name:, e.g.: //+optional. Due to a colon added at the end of the values when parsing the arguments, revive complains about comments starting with the marker even if one adds it as an exception.

Did you add tests?

The current tests are still valid with the changes.

Does your code follow the coding style of the rest of the repository?

Yes.

Closes #980

@gfariasalves-ionos gfariasalves-ionos changed the title Remove added colon from comment-spacings rule Remove added colon in comment-spacings rule Apr 18, 2024
RULES_DESCRIPTIONS.md Outdated Show resolved Hide resolved
RULES_DESCRIPTIONS.md Outdated Show resolved Hide resolved
@chavacava
Copy link
Collaborator

Thank you @gfariasalves-ionos for the PR. I've left some nit comments on the documentation of the rule.
Could you please also add test cases for the the new use case ( something+)

@gfariasalves-ionos
Copy link
Contributor Author

Please check again :)

@chavacava chavacava merged commit 0a77458 into mgechev:master Apr 19, 2024
4 checks passed
@chavacava
Copy link
Collaborator

Merged. Thanks Gustavo!

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.

comment-spacings exceptions do not work if there's no colon after the exception
2 participants