Skip to content

Remove trailing whitespace and add .editorconfig#26

Open
familiarcow wants to merge 1 commit into
mainfrom
remove-trailing-whitespace
Open

Remove trailing whitespace and add .editorconfig#26
familiarcow wants to merge 1 commit into
mainfrom
remove-trailing-whitespace

Conversation

@familiarcow

Copy link
Copy Markdown
Owner

Summary

Replaces #23 with the same whitespace cleanup applied to current main, plus a small addition to prevent recurrence:

  • Strips trailing whitespace across 55 source/template/asset/config files (the same set @koitsu identified in Remove trailing whitespace from lines #23). Pure formatting — no behavioral change.
  • Adds .editorconfig with trim_trailing_whitespace = true so editors automatically clean up new contributions and we don't have to redo this in 6 months. Markdown is exempted (trailing two-space-as-linebreak is sometimes meaningful there).

Why a fresh PR instead of rebasing #23

#23 was based on 5813e8d, several commits behind current main. Most files in the original PR have moved (PR #21 thornode rewrite, the Liquify failover work, PR #24 take-over, etc.) so a rebase would conflict on most files. The whitespace fix is a deterministic transform — re-applying programmatically against current main produces a cleaner result with full @koitsu attribution preserved via Co-authored-by.

Test plan

  • npx vite build succeeds, identical chunk sizes to pre-change
  • Diff stat matches the original PR's intent (1191/1187 lines, 55 files)
  • No visible regressions when running npm run dev

Strips trailing whitespace from all source, template, asset, and config
files identified in #23, applied to current main. Pure formatting — no
behavioral change.

Adds .editorconfig with trim_trailing_whitespace = true so this doesn't
regress. Markdown files are exempted since trailing-space-as-line-break
is sometimes meaningful there.

Co-authored-by: koitsu <jdc@koitsu.org>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rune-tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 822cc89
Status: ✅  Deploy successful!
Preview URL: https://e300ae69.rune-tools.pages.dev
Branch Preview URL: https://remove-trailing-whitespace.rune-tools.pages.dev

View logs

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.

1 participant