Open cdepillabout opened 2 years ago
It is incredibly difficult today to determine where the fault lies in the codebase, since the Action doesn't say anything about which files are not formatted, neither in the files view, nor in the action interface
Absolutely agreed! Though, just letting you know, if you look at the run's logs, you'll see the suggestions.
On Sat, Jun 11, 2022, 13:31 Théophile Choutri @.***> wrote:
It is incredibly difficult today to determine where the fault lies in the codebase, since the Action doesn't say anything about which files are not formatted, neither in the files view, nor in the action interface
[image: Screenshot_20220611_223009] https://user-images.githubusercontent.com/15848443/173203911-5584c971-a407-4a6b-9f59-1de6803fc054.png
— Reply to this email directly, view it on GitHub https://github.com/fourmolu/fourmolu-action/issues/1#issuecomment-1152993174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALRLUIUSW4WNQGVFHUVEVLVOTZQPANCNFSM5XMZ4BAQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@wraithm Hi, thank you for the quick response! Although I'm still perplex, because the logs as given by Github show me this:
This is the faulty run. Maybe I'm not looking at the right place?
@tchoutri That's weird! We see the suggestions in our code base... You're definitely looking in the right place. I was mistaken and I'd actually expect it to show up in that place where you took that screen shot, (ie. https://github.com/flora-pm/flora-server/runs/6845560053?check_suite_focus=true).
Hmm...
@tchoutri Thanks for reporting this. That does appear to be a bug, so I've opened up a separate issue to track this: https://github.com/fourmolu/fourmolu-action/issues/4
I finally remembered where I saw use of warnings in PRs when an action fails:
You can see that the GitHub actions leave a bunch of warnings, and those warnings are shown in the PR overview. It looks like this:
The warnings are the Check warning
blocks that are inline in the code.
This might be a nice thing to figure out how to do for our fourmolu-action as well.
It would be nice if this Action left comments/warnings/suggestions on PRs on places in the code where the formatting doesn't match what
fourmolu
suggests.I think https://github.com/tfausak/hlint-action does have this feature. It would be nice to have something similar here.