Skip to content

Commit

Permalink
spec linter no longer complains about a single long unit-test directo…
Browse files Browse the repository at this point in the history
…ry (#1824)

reverted files split for having over 500 lines if they were long unit-test directories
Fixes #1821
  • Loading branch information
Goodwine authored Sep 15, 2022
1 parent 41fe514 commit 3f1333f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lint-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,12 @@ async function bigHrx(

const tooBig: string[] = [];
for (const f of hrxFiles) {
const subDir = await fromPath(f);
if (subDir.isTestDir()) continue;

reporter.reportLintedFile(f);

const options = await (await fromPath(f)).options();
const options = await subDir.options();
const linterAnnotation =
options.getMode('lint-hrx') ?? options.getMode('sass/sass-spec#');
// Skip XHR files annotated with :ignore-for: or :todo: containing
Expand Down

0 comments on commit 3f1333f

Please sign in to comment.