-
-
Notifications
You must be signed in to change notification settings - Fork 8
lines-changed-only gets confused when lines only deleted from a file #18
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 was a reason I made it lint the whole file if no changed lines were specified, but you make a good case. I think the unit tests will need to also reflect such a change. |
@shenxianpeng To be clear, the desired behavior here is to skip the file entirely if there are no new lines added. The solution you initially proposed in #21 doesn't satisfy that behavior. |
Reopen this issue until it passed test from cpp-linter-action |
From chocolate-doom/chocolate-doom#1538
It complains about all issues in file
src/hexen/p_enemy.c
The PR only deleted lines from this file and did not add any. This led to
"lines": []
being passed to clang-format which was interpreted as "lint whole file".The text was updated successfully, but these errors were encountered: