Commit graph

2 commits

Author SHA1 Message Date
Elijah Potter
5d3beaad4f fix: ignore test dataset files from source code line count
Some checks failed
Binaries / harper-ls - macOS-aarch64 (push) Has been cancelled
Binaries / harper-ls - Linux-aarch64-musl (push) Has been cancelled
Binaries / harper-ls - macOS-x86_64 (push) Has been cancelled
Binaries / harper-ls - Linux-x86_64-GNU (push) Has been cancelled
Binaries / harper-cli - Linux-x86_64-GNU (push) Has been cancelled
Binaries / harper-cli - Linux-x86_64-musl (push) Has been cancelled
Binaries / harper-cli - Windows-x86_64 (push) Has been cancelled
Binaries / harper-ls - Linux-aarch64-GNU (push) Has been cancelled
Binaries / harper-ls - Linux-x86_64-musl (push) Has been cancelled
Binaries / harper-ls - Windows-x86_64 (push) Has been cancelled
Build Web / build-web (push) Has been cancelled
Chrome Plugin / chrome-plugin (push) Has been cancelled
Just Checks / just check-js (push) Has been cancelled
Just Checks / just check-rust (push) Has been cancelled
Just Checks / just test-chrome-plugin (push) Has been cancelled
Just Checks / just test-firefox-plugin (push) Has been cancelled
Just Checks / just test-harperjs (push) Has been cancelled
Just Checks / just test-obsidian (push) Has been cancelled
Just Checks / just test-rust (push) Has been cancelled
Just Checks / just test-vscode (push) Has been cancelled
VS Code Plugin / alpine-arm64 (push) Has been cancelled
VS Code Plugin / alpine-x64 (push) Has been cancelled
VS Code Plugin / darwin-arm64 (push) Has been cancelled
VS Code Plugin / darwin-x64 (push) Has been cancelled
VS Code Plugin / linux-arm64 (push) Has been cancelled
VS Code Plugin / linux-armhf (push) Has been cancelled
VS Code Plugin / linux-x64 (push) Has been cancelled
VS Code Plugin / win32-arm64 (push) Has been cancelled
VS Code Plugin / win32-x64 (push) Has been cancelled
WordPress Plugin / wp-plugin (push) Has been cancelled
2025-11-28 13:25:20 -07:00
Alex Todoran
00998a1df4 feat: enforce LF line endings everywhere
Contributors who work on Windows might accidentally commit newly
created files with CRLF line endings, later causing noisy diffs
when Linux developers work on the same files and they do not have
`core.autocrlf = true`.
However nowadays, most text editors work with LF line endings just
fine on windows, so there's no need for this incompatibility.

Add an `.editorconfig` file which causes the text editor to create
new files using LF from the get-go instead of CRLF (VSCode needs
https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
in order to conform).

Add a `.gitattributes` file to tell git to always checkout files using
LF as line ending.

Normalize line endings throughout the codebase using
`git add --renormalize .`.

https://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings
2025-03-10 10:51:39 -06:00