-
-
Notifications
You must be signed in to change notification settings - Fork 7
cpp-linter performing checkup on a new .c file failed #16
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
Comments
I think there's larger problem at work here. If you set Lines 388 to 408 in a23e14d
All this to say: Why wasn't there a diff included in the event for that file? |
This wouldn't be problem if I can get the solution for cpp-linter/cpp-linter-action#4 working in the CI runner. I also thought about switching to requesting the diff format (instead of using the json format) for REST API call that gets the changed files of an event. |
I think the real culprit here is that GitHub didn't bother with a diff because the |
The failed job is passed this time, but I see there is a notice annotation was added. Do we need or remove it? |
That just means that clang-format found problems with the listed lines. |
OK, got it. review code I understand, it should also display other messages "Code does not conform to {style_guide} style guidelines.", but it's too long. |
Yes, that's a compromise I made. You cannot make more than 50 annotations in a single workflow run. I think the limit for message content is something larger (can't remember the exact number of bytes). So instead of creating an annotation for every line that didn't pass the checks, I just put the entire list in 1 annotation at the beginning of the file. |
Make sense. the largest string length for each annotation seems 4097. Maybe we could only display 4000 lengths of string and others lengths for display "Code does not conform to {style_guide} style guidelines." |
I thought the title, "Run clang-format on p_enemy.c: p_enemy.c#L1", would have implied that code does not conform to clang-format settings. |
It might be easier to use an ellipses when the number of lines is too long to fit in the annotation. Maybe something like
|
Maybe we could display "Code does not conform to {style_guide} style guidelines." first then with lines, it's easy to change 😃
|
Reopen this ticket to for tracking the rest changes |
I am trying to reproduce #18 in this PR shenxianpeng/test-repo#6
But I have another problem.
For more details see https://github.com/shenxianpeng/test-repo/actions/runs/3408873516/jobs/5669961676
The text was updated successfully, but these errors were encountered: