Repository navigation
Add missing test folders to fmt script - #1459
Conversation
|
Wouldn't it make more sense to remove the test files from the ignore list here https://github.com/model-checking/kani/blob/main/rustfmt.toml#L12 instead of formatting them one by one in this script? |
I believe we still have to format them one by one (AFAIK, you can't run I had forgotten about that file. We haven't really used that. If you look closely, all paths there are related to the |
|
Note that this was one of the things I was trying to fix here: #1422 |
978faca to
4b4bcc9
Compare
Note: I had to use ** wildcard in the ignore section. I believe this may be related to how rustfmt handle paths when --config-path is used.
Description of changes:
The format script didn't include all suites that require formatting. I changed the logic to exclude specific folders via
rustfmt.tomlinstead of keeping a list of folders to format.Resolved issues:
Resolves #1455
Call-outs:
I couldn't find any easy way to make
rustfmtignore a folder that contains their own configuration file (likes2n-quic) submodule inside tests. We should probably not have submodules scattered around our repo, but that's a problem for another day. For now, I am forcingrustfmtto always use the root configuration file when checking tests.Testing:
How is this change tested? N/A
Is this a refactor change? No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.