-
Notifications
You must be signed in to change notification settings - Fork 21
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
Seperate output for clang-format
and clang-tidy
#168
Comments
I think adding more specific outputs is a good idea. Hint: the tally of |
Currently, you could work around the generic output by running the action once for clang-tidy and once for clang-format: steps:
# ...
- name: Run clang-tidy only
id: clang-tidy
uses: cpp-linter/cpp-linter-action@v2
with:
style: '' # disable clang-format
# other applicable inputs...
- name: clang-tidy check-failed?
run: echo "${{ steps.clang-tidy.outputs.checks-failed }} clang-tidy concerns"
- name: Run clang-format only
id: clang-format
uses: cpp-linter/cpp-linter-action@v2
with:
tidy-checks: '-*' # disable clang-tidy
# other applicable inputs...
- name: clang-format check-failed?
run: echo "${{ steps.clang-format.outputs.checks-failed }} clang-format concerns" Note The above workflow is just a pseudo coded idea. Other cpp-linter-action inputs may apply as needed (namely |
you know i was wondering if an empty string disabled clang-format. Thanks! |
No problem. It is noted in the README. See also the |
Reading comprehension ++ (also I've been up for like 40 hours lol). Thanks again. |
satisfies feature requested in cpp-linter/cpp-linter-action#168
satisfies feature requested in cpp-linter/cpp-linter-action#168
resolves #168 adds 2 new output variables: - clang-tidy-checks-failed - clang-format-checks-failed
resolves #168 adds 2 new output variables: - clang-tidy-checks-failed - clang-format-checks-failed
Would you take a PR that separates
steps.linter.outputs.checks-failed
intosteps.linter.outputs.clang-format-checks-failed
andsteps.linter.outputs.clang-tidy-checks-failed
? I would like to block on formatting but only post the comments fromclang-tidy
.The text was updated successfully, but these errors were encountered: