Skip to content

Conversation

@jerryjappinen
Copy link

@jerryjappinen jerryjappinen commented Oct 19, 2025

I noticed the codebase has a lot of trailing whitespace characters. As I started making other changes for potential PRs, I noticed my editor would auto fix them and this would show up in diffs, making it difficult to pick out the actual code changes.

In this PR, I went through all the (not unmaintained) files, simply saved them once and let my editor (Zed) automatically clean up trailing whitespace, weird newlines and ensure each files end with an empty line consistently.

If this PR is merged, all future PRs should be a bit cleaner. On GitHub, you can set the diff viewer to ignore whitespace-only changes by attaching &w=1 to the URL, which should help with review. For some reason, waterpaint.glsl seems to throw the diff viewer off, but as far as I can tell, there's nothing interesting that has changed there.

It would be nice to have some sort of linter hooked up that would enforce this across editors and contributors, but I don't know what the best way to implement that would be.

@frysee
Copy link
Collaborator

frysee commented Oct 19, 2025

Theres also #538, but this already helps with cleaning up. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants