Page MenuHomePhabricator

[services] fix rust-pre-commit hook
ClosedPublic

Authored by varun on Jun 30 2022, 2:16 PM.
Tags
None
Referenced Files
F2902076: D4423.id14085.diff
Sat, Oct 5, 3:36 PM
F2902075: D4423.id14056.diff
Sat, Oct 5, 3:35 PM
Unknown Object (File)
Sun, Sep 29, 11:41 PM
Unknown Object (File)
Sun, Sep 29, 11:40 PM
Unknown Object (File)
Fri, Sep 27, 7:39 PM
Unknown Object (File)
Fri, Sep 27, 7:39 PM
Unknown Object (File)
Sep 3 2024, 7:02 AM
Unknown Object (File)
Sep 3 2024, 7: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