Open laughedelic opened 6 years ago
I tried to run it on the sbt/sbt repo and the current naive implementation (getting files content one by one) takes forever.
Here's an idea of how this should work:
A simplified version to start with:
Other thoughts:
timed_out
completion status)neutral
result and a warning message)
Current simple implementation just lists all files in the repo (at a given commit) and checks their formatting. This may take a long time in big repos. So the plan is to check only the files changed in the PR (i.e. assuming that
master
stays well-formatted).master
).scalafmt.conf
is among changed files, we still need to (re)check all files