Closed
Bug 1392504
Opened 7 years ago
Closed 7 years ago
mach clang-format should only format changed files by default
Categories
(NSS :: Build, enhancement)
NSS
Build
Tracking
(Not tracked)
RESOLVED
FIXED
3.33
People
(Reporter: mt, Assigned: mt)
Details
The most common reason to run `mach clang-format` is that you have made some changes and they need to be reformatted. So why not detect changes and run clang-format on those changes? You can always run `./mach clang-format .` to force it to check everything according to its rules, but that's not likely to be needed. I also ran autopep8 on `mach` and it fixed a few things. I wonder if we should insist on that for python files...
Assignee | ||
Comment 1•7 years ago
|
||
https://nss-review.dev.mozaws.net/D418
Assignee: nobody → martin.thomson
Comment 2•7 years ago
|
||
Running autopep8 on other python files sounds like a good idea.
Assignee | ||
Comment 3•7 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/181a42a2e523a39305342e60bdc9d80f9f2245cf https://bugzilla.mozilla.org/show_bug.cgi?id=1392845
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•7 years ago
|
||
Follow-up https://hg.mozilla.org/projects/nss/rev/16d3e6c47964e33ae3a088939acb43295196f539
You need to log in
before you can comment on or make changes to this bug.
Description
•