Files
openclaw/scripts/check-max-lines-ratchet.d.mts
Peter SteinbergerandGitHub f81f9d8570 chore: enforce max-lines suppression ratchet (#107315)
* ci: enforce max-lines suppression ratchet

* chore: prune stale max-lines suppression

* fix: close max-lines ratchet enforcement gaps

* fix: harden max-lines ratchet checks

* fix(ci): satisfy max-lines ratchet checks

* style: format max-lines declarations

* fix(ci): match oxlint suppression grammar

* test: isolate max-lines git fixtures

* chore: prune resolved max-lines debt

* test: skip newline path fixture on Windows

* fix: harden max-lines suppression ratchet

* chore: refresh max-lines baseline

* fix: close max-lines ratchet bypasses

* fix: derive ratchet base from PR merge tree

* fix: support older Git in staged ratchet

* fix: align max-lines declarations and baseline

* chore: refresh max-lines baseline for current main

* fix: exclude generated wizard locales from max-lines

* chore: prune resolved max-lines debt
2026-07-14 09:27:02 -07:00

21 lines
984 B
TypeScript

export function isGovernedSourcePath(filePath: string): boolean;
export function collectLintDisableDirectives(source: string, filePath?: string): string[][];
export function isMaxLinesRule(rule: string): boolean;
export function hasMaxLinesDisable(source: string, filePath?: string): boolean;
export function hasAllRuleDisable(source: string, filePath?: string): boolean;
export function parseBaseline(source: string): Set<string>;
export function diffBaseline(
current: Iterable<string>,
baseline: ReadonlySet<string>,
): { added: string[]; stale: string[] };
export function findBaselineExpansion(
current: Iterable<string>,
base: ReadonlySet<string>,
): string[];
export function collectCurrentSuppressions(root?: string, options?: { staged?: boolean }): string[];
export function collectCurrentSuppressionState(
root?: string,
options?: { staged?: boolean },
): { allRules: string[]; explicit: string[] };
export function main(root?: string, argv?: string[]): number;