-
Notifications
You must be signed in to change notification settings - Fork 63
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
check whitespace as part of CI? #462
Comments
For spaces at least, one other possibility would be to check in a |
Yeah, it is something like julia compilation gives one form, |
We might just want to apply the total formatting solution that makes code-suggestions to follow BlueStyle. |
I would probably just do both, making assumptions about people's setups is always dangerous... 😄 |
Strongly support this. I can confirm that JuliaFormatter does handle whitespace & newlines, and overall including an automatic code formatter makes life SO much easier when dealing with pull requests. Saves a lot of mental effort on both writer & reviewer side that can be put to more effective use:) You can also add a Github Action that automatically suggests the required formatting changes, see e.g. https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/blob/master/.github/workflows/format.yml |
@st-- Do you want to make a PR? |
I think we should have a job that checks for trailing whitespace and newlines at the end of files. It's not a huge deal, but I encounter that quite often in our code base and it can make diffs a bit more confusing to read since some editors correct this automatically.
Might also make sense to check for correct unicode normalization as well, I think we had some problems with that in the past.
The text was updated successfully, but these errors were encountered: