Modify script to fail when some run clang-tidy
command fails. Based on run_clang-tidy.
Fixes: #65000
Paths
| Differential D158929
[clang-tidy] Add exit code support to clang-tidy-diff.py ClosedPublic Authored by PiotrZSL on Aug 26 2023, 5:09 AM. Tokens "Like" token, awarded by FlashSheridan.
Details Summary Modify script to fail when some run clang-tidy Fixes: #65000
Diff Detail
Event TimelineComment Actions A couple of low-priority suggestions from Pylint 3 at 326 and 95:
Comment Actions Thank you kindly, this is looking very good on our recent changes in my manual usage. (It will take some more work before I can run it in our GitHub Action, which I’m looking forward to.) This revision is now accepted and ready to land.Aug 31 2023, 12:07 PM Closed by commit rG4294bca5e4f6: [clang-tidy] Add exit code support to clang-tidy-diff.py (authored by PiotrZSL). · Explain WhyAug 31 2023, 1:02 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 555147 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
clang-tools-extra/docs/ReleaseNotes.rst
|
Pylint 3 says > “[R0913(too-many-arguments), start_workers] Too many arguments (6/5),”
I think you just pushed start_workers() over the edge; personally, I don’t think a rewrite to reduce the number of arguments would improve clarity.