Skip to content

Commit

Permalink
perf: read rules in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Nov 3, 2024
1 parent 737668c commit 93b4bfa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/traverse-rules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ suite('readFilesRecursively', () => {
{
category: 'unknown',
error: 'No match block for `declare_oxc_lint`',
scope: 'eslint',
value: 'rulename-with-mod',
scope: 'typescript',
value: '@typescript-eslint/rulename-without-mod',
},
{
category: 'unknown',
error: 'No match block for `declare_oxc_lint`',
scope: 'typescript',
value: '@typescript-eslint/rulename-without-mod',
scope: 'eslint',
value: 'rulename-with-mod',
},
]);
});
Expand Down Expand Up @@ -163,11 +163,6 @@ suite('readFilesRecursively', () => {
await readFilesRecursively('.', successResultArray, [], []);

expect(successResultArray).toEqual([
{
category: 'style',
scope: 'eslint',
value: 'rulename-with-mod',
},
{
category: 'correctness',
scope: 'typescript',
Expand All @@ -178,6 +173,11 @@ suite('readFilesRecursively', () => {
scope: 'unicorn',
value: 'unicorn/rule-with-fixability',
},
{
category: 'style',
scope: 'eslint',
value: 'rulename-with-mod',
},
]);

expect(skippedResultArray).toEqual([]);
Expand Down

0 comments on commit 93b4bfa

Please sign in to comment.