chore(inputs): remove allowedLineEnding rule as it is to heavy

This commit is contained in:
peaklabs-dev committed 2026-02-13 15:59:23 +01:00
1 parent 39705d7e06
commit b47bcd8f8d
3 files changed
-14

No files matched your search

-12
View File
@@ -12,7 +12,6 @@ const VALID_AUTHOR_ASSOCIATIONS = [
"NONE",
"OWNER",
];
const VALID_LINE_ENDINGS = ["lf", "crlf", "cr"];
function parseList(raw: string): string[] {
return raw
@@ -57,7 +56,6 @@ export function getSettings(): Settings {
allowedPaths: core.getMultilineInput(Input.AllowedPaths),
blockedPaths: core.getMultilineInput(Input.BlockedPaths),
requireFinalNewline: core.getBooleanInput(Input.RequireFinalNewline),
allowedLineEnding: core.getInput(Input.AllowedLineEnding),
// User Health Checks
minRepoMergedPrs: parseInt(core.getInput(Input.MinRepoMergedPrs)),
@@ -146,14 +144,4 @@ function validateSettings(settings: Settings): void {
);
}
}
if (
settings.allowedLineEnding !== "" &&
!VALID_LINE_ENDINGS.includes(settings.allowedLineEnding)
) {
throw new Error(
`"allowed-line-ending" must be one of ${VALID_LINE_ENDINGS.join(", ")} or empty, ` +
`got "${settings.allowedLineEnding}"`,
);
}
}