-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: allow whitespace after comma in ignore validations comments #89
chore: allow whitespace after comma in ignore validations comments #89
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
This is definitely the intended behavior to strip trailing commas and white spaces so thank you for fixing this :)
I left just few notes about the implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks! 👍
Sorry for the nitpicking
The CI is failing, would you please try running |
No worries thanks for the feedback. |
Oh could you please run it, I am using WSL2 which golangci-lint seems to have some issues with xxpxxxxp/intellij-plugin-golangci-lint#71. |
Signed-off-by: Martin Chodur <[email protected]>
Signed-off-by: Martin Chodur <[email protected]>
Signed-off-by: Martin Chodur <[email protected]>
Thanks! 👍 |
It's common practice to have whitespaces in comma separated lists, however since we don't remove them in the implementation of the comment / annotation for disabling validations, the whitespaces causes the the name of the validations to not match.
This draft PR provides a file for a test case and adds whitespace trimming for the validation name.