-
-
Notifications
You must be signed in to change notification settings - Fork 15
Add rustfmt-check
#22
Comments
Hi, @JP-Ellis! Well, yes, technically, there should be no difficulties, but I can't imagine any reason to do that so far, so it would help if you could elaborate a little bit more about your case.
|
Well, I can see three ways in which
Although I personally would use the first two options the most, it might be worth adding support for the last option especially in cases where some of the code should not be reformatted and there is a missing |
Lots (most?) of the suggestions can actually be fixed with And, either way, since we already have a |
I started working on an action based on the ideas presented in this issue: https://github.com/mbrobbel/rustfmt-check. |
Would it be difficult to adapt
clippy-check
to createrustfmt-check
?There is the same
--mesage-format=json
option forcargo fmt
, though currently it is in a bit of limbo on stable (rust-lang/rustfmt#3947).I tried forking
clippy-check
to createrustfmt-check
, but was unable to get npm to install the right dependencies and I'm not sure how things are meant to work. You can see the 'fork' at https://github.com/JP-Ellis/rustfmt-check and a test crate using it at https://github.com/JP-Ellis/test-rustfmt-check and if I'm on the right track, help would be appreciated.The text was updated successfully, but these errors were encountered: