Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Recursive source clang-tidy #104

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

bwrsandman
Copy link
Contributor

There's an issue when trying to run clang-tidy without --checks and --config-file.
This is the case when you want to use the .clang-tidy configs in a recursive per-directory way.

In #96, I added the ability to set both checks and config to empty strings which did this, however, switching to shell=False, means that empty strings still count as arguments.

This ends up with '' being sent to clang-tidy as an agument which clang-tidy interprets as a file name ($PWD + '' to check. It then emits and error that the current directory cannot be opened.

This PR makes sure that in this case, the '' argument is not set and prints a more useful message in that case.

@bwrsandman bwrsandman marked this pull request as draft January 11, 2024 19:18
@bwrsandman bwrsandman marked this pull request as ready for review January 11, 2024 20:03
@ZedThree ZedThree merged commit 0dd8d19 into ZedThree:master Jan 12, 2024
1 check passed
@bwrsandman bwrsandman deleted the recursive-source-config branch January 12, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants