Page MenuHomePhabricator

[services] fix rust-pre-commit hook
ClosedPublic

Authored by varun on Jun 30 2022, 2:16 PM.
Tags
None
Referenced Files
F3492984: D4423.id14085.diff
Thu, Dec 19, 1:55 AM
F3492983: D4423.diff
Thu, Dec 19, 1:55 AM
Unknown Object (File)
Tue, Dec 17, 7:00 AM
Unknown Object (File)
Tue, Dec 17, 7:00 AM
Unknown Object (File)
Wed, Dec 4, 10:02 PM
Unknown Object (File)
Wed, Nov 27, 10:46 PM
Unknown Object (File)
Nov 5 2024, 4:32 PM
Unknown Object (File)
Oct 22 2024, 11:02 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable