Page MenuHomePhabricator

[services] fix rust-pre-commit hook
ClosedPublic

Authored by varun on Jun 30 2022, 2:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 4:32 PM
Unknown Object (File)
Tue, Oct 22, 11:02 AM
Unknown Object (File)
Mon, Oct 21, 8:28 PM
Unknown Object (File)
Oct 17 2024, 10:26 PM
Unknown Object (File)
Oct 13 2024, 1:35 PM
Unknown Object (File)
Oct 13 2024, 1:35 PM
Unknown Object (File)
Oct 13 2024, 1:35 PM
Unknown Object (File)
Oct 13 2024, 1:28 PM

Details

Summary

we add the "all" flag to format all packages and their local dependencies. we add the "check" option to run rustfmt in check mode, which ensures that the pre-commit hook fails further formatting is required.

Test Plan

tried unformatting some code in the commtest package and then committing my changes. the linter stopped me from committing the code, as expected

Diff Detail

Repository
rCOMM Comm
Branch
fix-cargo-fmt-hook
Lint
No Lint Coverage
Unit
No Test Coverage