-
Notifications
You must be signed in to change notification settings - Fork 7
Cleanup whitespaces in Breeze codebase #406
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
Conversation
|
|
||
| ∂t_ρθ_large_scale = Field{Nothing, Nothing, Center}(grid) | ||
| ∂t_θ_large_scale = - 2.5 / day # K / day | ||
| ∂t_θ_large_scale = - 2.5 / day # K / day |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This replaced
julia> ' '
' ': Unicode U+00A0 (category Zs: Separator, space)with
julia> ' '
' ': ASCII/Unicode U+0020 (category Zs: Separator, space)No idea how a non-breaking space ended up there in the first place.
9dbe5ee to
271b9f5
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this!
* Add GitHub action to clear whitespace NumericalEarth/Breeze.jl#406 * Resolve all whitespace issues * Fix typo in nospecialize annotation * Fix typo in @nospecialize annotation --------- Co-authored-by: Mosè Giordano <m.giordano@ucl.ac.uk>
This also adds a simple check for simple whitespace issues which is used in the Julia repo. In PRs, this annotates the offending lines in the "files changed" tab, see an example at JuliaLang/julia#55281 (comment).
A previous attempt at adding a formatting linter didn't go very far, but this is very lightweight and only about extra, or missing, whitespaces at the end of lines and similar issues, and it's even used in the Julia repo where there's traditionally some resistance to enforce heavy handed code formatters. Note: #395 would introduce 400+ more whitespace issues (which is my main motivation for this 🙃), but I can fix them all in one go with a simple elisp script if this is accepted.