Skip to content
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

chore: ensure all text files end with a single blank newline #567

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Mar 14, 2025

While we have this captured with .editorconfig which is supported by a lot of editors, it's very easy to miss in the review UI and in VSCode in particular requires an extension to be installed meaning people need to be aware it's a thing; so this setups up CI to explicitly check and warn about this.

Unsurprisingly this has revealed a handful of files that have extraneous end-of-file newlines, most of which are in test files though I don't think they're actually critical to the test so I have removed them - the only ones I've ignored are two that are explicitly covering behaviour when there are trailing newlines, though I actually suspect it would be fine to have just a single newline at the end of the file, which would be nice at it would let us avoid needing a .linelint config, but for now I've just ignored them

@G-Rath G-Rath force-pushed the ci/enforce-end-of-file-newline branch from 062e4d9 to 03abc00 Compare March 14, 2025 22:03
@G-Rath G-Rath force-pushed the ci/enforce-end-of-file-newline branch from ac8b497 to c14c3e2 Compare March 14, 2025 22:17
@G-Rath G-Rath force-pushed the ci/enforce-end-of-file-newline branch from c14c3e2 to 1ae4aa1 Compare March 14, 2025 22:20
@G-Rath G-Rath force-pushed the ci/enforce-end-of-file-newline branch from 98444eb to 7cf0568 Compare March 14, 2025 22:27
@G-Rath G-Rath changed the title ci: ensure that all text files end with a newline chore: ensure all text files end with a single blank newline Mar 14, 2025
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