While rebuilding the list of checks in add_new_check.py,
check is a file is a subdirectory before traversing it.
Test plan: Ran ./add_new_check.py --update-docs and confirmed the list.rst file was unchanged.
Differential D140772
[clang-tidy] Fix minor bug in add_new_check.py ccotter on Dec 29 2022, 8:14 PM. Authored by
Details While rebuilding the list of checks in add_new_check.py, Test plan: Ran ./add_new_check.py --update-docs and confirmed the list.rst file was unchanged.
Diff Detail
Event TimelineComment Actions LGTM, I have a suggestion for further improvement.
|
It feels this whole code could be made much simpler, readable and safer by just doing: