-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
False positive after committing a suggestion #66
Comments
@informeti After committing the suggestion, please try checking it out. On the back end, if there are any differences when action run |
Hi @mongolyy, thank you for your quick response! So far, I haven't noticed any inconsistency between After committing the suggestion and pulling the difference locally, the result is the following:
I also tried to "reproduce" what the action would be doing. I resetted all changes and introduced the formatting error again. As expected, both
Then, I did what I expect the action would do:
And, as expected, the newline is there and biome doesn't complain. So I'm a bit confused... what could be removing the empty line? EDIT: Maybe irrelevant, but I have an .editorconfig in the repository root, which indicates |
@informeti The problem has been reproduced at #67 . I think the settings for the tool called reviewdog used in this action are a little suspicious. I think reviewdog/reviewdog#1580 is similar. I will investigate this in more detail this weekend. |
@informeti I came to the conclusion that there might be a problem with the tool called reviewdog that this tool uses. Therefore, I created an issue and wait for the response. |
I just tried out this action, and formatting and reporting both seem to work out-of-the-box. Excellent!
But when I committed the suggestion in GitHub, the changed lines were reported again as an error, except that the diff doesn't really show a difference.
It seems to be due to a missing line at the end of the file, which Biome seems to unconditionally require... If my understanding is correct, this action, reviewdog or biome strips the empty line at the end of the file.
Truth be told, I'd rather have Biome accept this, but afaik Biome is a bit conservative on that side of things.
Before committing the suggestion (so far, so good):
After committing the suggestion (not good):
Workflow file:
Log:
PS: Thank you for this wonderful action!
The text was updated successfully, but these errors were encountered: