-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Running the following command has output but its return code is 1 cause the action to fail.
subprocess.CalledProcessError: Command '['clang-tidy-11', '-checks=boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-*,cppcoreguidelines-*', '--export-fixes=clang_tidy_output.yml', 'demo.cpp']' returned non-zero exit status 1.More details please refer to this action https://github.com/shenxianpeng/test-cpp-linter-action/runs/3782914731
I did a manual test, it looks good, it return 0, so I was confused why it failed. any suggestions?
gitpod /workspace/test-cpp-linter-action $ clang-tidy-11 -checks=boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-*,cppcoreguidelines-* --export-fixes=clang_tidy_output.yml demo.cpp
957 warnings generated.
/workspace/test-cpp-linter-action/demo.cpp:3:10: warning: inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead [modernize-deprecated-headers]
#include <stdio.h>
^~~~~~~~~
<cstdio>
/workspace/test-cpp-linter-action/demo.cpp:8:5: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
int main(){
~~~ ^
auto -> int
/workspace/test-cpp-linter-action/demo.cpp:10:13: warning: statement should be inside braces [readability-braces-around-statements]
for (;;) break;
^
{
/workspace/test-cpp-linter-action/demo.cpp:13:5: warning: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg]
printf("Hello world!\n");
^
Suppressed 953 warnings (949 in non-user code, 4 with check filters).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
gitpod /workspace/test-cpp-linter-action $ echo $?
0Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working