Repository navigation
Commit 56dfd13
committed
Remove obsolete LCL line-ending exemptions
The legacy localization handbacks have been removed, so they no longer
need exceptions to the repository's line-ending rules.
[git-generate]
node <<'NODE'
const fs = require("node:fs");
function replaceOnce(path, from, to) {
const text = fs.readFileSync(path, "utf8");
const index = text.indexOf(from);
if (index < 0 || text.indexOf(from, index + from.length) >= 0) {
throw new Error(`expected exactly one match in ${path}`);
}
fs.writeFileSync(path, text.slice(0, index) + to + text.slice(index + from.length));
}
replaceOnce(".gitattributes", "\ntools/loc/**/*.lcl -text\n", "");
replaceOnce(".editorconfig", `
[tools/loc/**/*.lcl]
end_of_line = unset
charset = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
`, "");
replaceOnce("Herebyfile.mjs", ' ":(exclude)tools/loc/**/*.lcl",\n', "");
NODE
npm ci --no-audit --no-fund
npx dprint fmt Herebyfile.mjs1 parent 2048da5 commit 56dfd13
3 files changed
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1437 | 1437 | | |
1438 | 1438 | | |
1439 | 1439 | | |
1440 | | - | |
1441 | 1440 | | |
1442 | 1441 | | |
1443 | 1442 | | |
| |||
0 commit comments