Skip to content

Commit

Permalink
Fix filtering of TS5055 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcasey committed Oct 6, 2022
1 parent c61b0ca commit a9fc7c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Expand Up @@ -444,7 +444,9 @@ export async function getTscRepoResult(

// TS 5055 generally indicates that the project can't be built twice in a row without cleaning in between.
const newErrorList = newErrors.projectErrors.find(pe => pe.projectUrl == projectUrl)?.errors?.filter(e => e.code !== 5055) ?? [];
const oldErrorList = oldProjectErrors.errors;
// Obviously, 5055 doesn't indicate a problem with building twice if it occurs during the first build,
// but it's still not interesting to report that it went away (which we would, since we drop it from `newErrorList`).
const oldErrorList = oldProjectErrors.errors.filter(e => e.code !== 5055);

console.log(`Error counts for ${projectUrl}: new = ${newErrorList.length}, old = ${oldErrorList.length}`);

Expand Down

0 comments on commit a9fc7c7

Please sign in to comment.