mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
chore: keep the line endings LF
Everything but dependencies.json is stored with LF, which nothing said, so a CRLF file could get in unnoticed (it did, for two files, in a round trip that shows as a rewrite of every line of both). * .gitattributes: normalize every text file to LF in the repository and check it out with LF, whatever core.autocrlf is (the Windows runner defaults it to true) * rustfmt.toml: newline_style = "Unix", so cargo fmt --check fails on a Rust file with CRLF * CI: fail when a file is stored with CRLF * dependencies.json: the one file that was stored with CRLF
This commit is contained in:
1 parent
21a821aca0
commit
a599e9ecc1
4 files changed
+1008
-1002
No files matched your search
+2
-1
@@ -1 +1,2 @@
|
|||||||
*.json text diff
|
* text=auto eol=lf
|
||||||
|
*.json text diff
|
||||||
@@ -54,6 +54,10 @@ jobs:
|
|||||||
cache-on-failure: "true"
|
cache-on-failure: "true"
|
||||||
cache-all-crates: "true"
|
cache-all-crates: "true"
|
||||||
key: ${{ matrix.platform.target }}
|
key: ${{ matrix.platform.target }}
|
||||||
|
- name: Check that no file is stored with CRLF
|
||||||
|
run: |
|
||||||
|
$crlf = git ls-files --eol | Select-String -Pattern '^i/crlf'
|
||||||
|
if ($crlf) { $crlf; exit 1 }
|
||||||
- run: cargo +nightly fmt --check
|
- run: cargo +nightly fmt --check
|
||||||
- run: cargo clippy
|
- run: cargo clippy
|
||||||
- run: cargo test
|
- run: cargo test
|
||||||
|
|||||||
+1001
-1001
File diff suppressed because it is too large.
Load diff
@@ -1 +1,2 @@
|
|||||||
imports_granularity = "Item"
|
imports_granularity = "Item"
|
||||||
|
newline_style = "Unix"
|
||||||
Reference in new issue
Block a user