提交 6969ad47 authored 作者: Thomas Mueller's avatar Thomas Mueller

The Windows .bat files did not contain CR+LF.

上级 bf4f652c
......@@ -27,6 +27,7 @@ public class CheckTextFiles {
"java", "txt", "properties", "sql", "xml", "csv", "Driver", "prefs" };
private static final String[] SUFFIX_IGNORE = { "gif", "png", "odg", "ico", "sxd",
"layout", "res", "win", "jar", "task", "svg", "MF", "sh", "DS_Store", "prop" };
private static final String[] SUFFIX_CRLF = { "bat" };
private boolean failOnError;
private boolean allowTab, allowCR = true, allowTrailingSpaces;
......@@ -100,6 +101,13 @@ public class CheckTextFiles {
if (ignore == check) {
throw new RuntimeException("Unknown suffix: " + suffix + " for file: " + file.getAbsolutePath());
}
useCRLF = false;
for (String s : SUFFIX_CRLF) {
if (suffix.equals(s)) {
useCRLF = true;
break;
}
}
if (check) {
checkOrFixFile(file, autoFix, checkLicense);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论