-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
lintcheck: fix table layout #13825
base: master
Are you sure you want to change the base?
lintcheck: fix table layout #13825
Conversation
lintcheck/src/json.rs
Outdated
| ------------------------------------------ | ------: | ------: | ------: | | ||
| [`clippy::float_arithmetic`](#user-content-float-arithmetic) | 0 | 0 | 0 |"; | ||
let expected = "| Lint | Added | Removed | Changed | | ||
|--------------------------------------------------------------|-------|---------|---------| |
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.
Don't added back that fancy ---:
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.
Right alignment is pretty nice for number columns, the markdown is rendered on the summary page e.g. here at https://github.com/rust-lang/rust-clippy/actions/runs/12297760099?pr=13820
I believe the print in the run itself is more for debugging, personally I don't think it's worth adding a dependency for
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.
Well, added dep, yes, but lintcheck didn't distributed to users and even cached in CI.
1a3cf61
to
90baf7e
Compare
r? Alexendoo |
Makes lintcheck output table looks nice. Before:
After https://github.com/rust-lang/rust-clippy/actions/runs/12329727234/job/34414382066?pr=13825:
Spotted at https://github.com/rust-lang/rust-clippy/actions/runs/12297760099/job/34320221594?pr=13820
changelog: none