feat: add check flag for the fmt command#4972
Merged
Conversation
auto-merge was automatically disabled
May 1, 2025 07:57
Head branch was pushed to by a user without write access
jdx
pushed a commit
that referenced
this pull request
May 3, 2025
### 🚀 Features - **(registry)** add luau by [@rhanneken](https://github.com/rhanneken) in [#4993](#4993) - **(registry)** add numbat by [@risu729](https://github.com/risu729) in [#4980](#4980) - add check flag for the fmt command by [@roele](https://github.com/roele) in [#4972](#4972) - use aqua for btop by [@jdx](https://github.com/jdx) in [#4979](#4979) ### 🐛 Bug Fixes - **(java)** filter out JetBrains releases with features by [@roele](https://github.com/roele) in [#4970](#4970) - fix deadlocks caused by uv_venv_auto by [@risu729](https://github.com/risu729) in [#4900](#4900) ### 📚 Documentation - Put dot in dotfile example by [@ryanbrainard](https://github.com/ryanbrainard) in [#4965](#4965) ### Chore - only use mold when available by [@jdx](https://github.com/jdx) in [#4978](#4978) - enable clearing screen for confirm and dialog by [@roele](https://github.com/roele) in [#4990](#4990) ### New Contributors - @rhanneken made their first contribution in [#4993](#4993) - @ryanbrainard made their first contribution in [#4965](#4965)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
--checkflag for thefmtcommand. When set no formatting is done.While adding this i wondered what the following should do. This does most likely not work as intended as the
sort_values_byclearly states that it does NOT operate on header keys as the ordering in the order closure suggests.mise/src/cli/fmt.rs
Lines 65 to 84 in 576014f