-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: add no-trailing-zeros
rule
#236
Conversation
🦋 Changeset detectedLatest commit: d0059bc The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
So weird, the test did not pass, it totally works on my side, I just changed some docs. 🤷 |
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.
Thank you for this PR.
I made some comments.
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.
LGTM!
Since YAML treats both
1.2
and1.20
as1.2
, trailing zeros for numbers is not necessary, this rule enforces it.There are some bugs that arise from one getting the difference between
1.2
and1.20
wrong.Such as setting the Go version in GitHub Actions to have to use
"1.20"
instead of1.20
/1.2
, which indicates the 20th version of Go, not of 2nd, this rule can discover and report it.See also (Chinese): https://twitter.com/haoel/status/1654074716968357888