Join GitHub today
clang-format redux #108
Add a CI job that checks formatting of source/header files applies our settings from .clang-format.
The output is... not great. I am having trouble getting particularly useful output. A sample failure can be found at https://seanmiddleditch.visualstudio.com/potato/_build/results?buildId=884
I think perhaps adding the diff back into that view might be useful, just also with the warnings to note the files that have errors (note it only shows the first error in a file). I can't get Azure to reliably post GitHub Annotations, much less any actually useful annotations.
That said, even without the diff, it's usually just enough to open each file and resave. In VS, a file can be fixed via ctrl-K ctrl-D.
Once Azure is updated to allow it, we can do some more work to auto-apply style fixes right in the PR CI feedback at the click of a button.