Skip to content

Commit 46bb69a

Browse files
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.mjs
1 parent 2ce9b44 commit 46bb69a

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎.editorconfig‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ end_of_line = unset
1111
charset = unset
1212
trim_trailing_whitespace = unset
1313
insert_final_newline = unset
14-
15-
[tools/loc/**/*.lcl]
16-
end_of_line = unset
17-
charset = unset
18-
trim_trailing_whitespace = unset
19-
insert_final_newline = unset

‎.gitattributes‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@
55

66
# Preserve line-ending-sensitive fixtures exactly.
77
tsc/testdata/** -text
8-
9-
tools/loc/**/*.lcl -text

‎Herebyfile.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,6 @@ async function runFormat() {
12011201

12021202
const lineEndingExclusions = [
12031203
":(exclude)tsc/testdata/**",
1204-
":(exclude)tools/loc/**/*.lcl",
12051204
];
12061205

12071206
export const fixLineEndingsTask = task({

0 commit comments

Comments
 (0)