Skip to content

Commit

Permalink
chore(build): update dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored and actions-user committed Aug 8, 2021
1 parent c45eaab commit 7fff42d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5905,6 +5905,8 @@ async function runTester(configLocation) {
}

// src/comment-templates.ts
var filterUniqueTruthy = (item, index, array) => item != null && array.indexOf(item) === index;
var formatRule = (rule) => "\n- `" + rule + "`";
var ERROR_TEMPLATE = (error2) => `Something went wrong.
<details>
Expand All @@ -5921,12 +5923,15 @@ var COMMENT_TEMPLATE = (results, repositoryCount, maxResultCount) => {
const template = RESULT_PARSER_TO_COMPARE_TEMPLATE.markdown.results;
const limitReached = results.length > maxResultCount;
const limitedResults = results.slice(0, maxResultCount);
const rules = results.map((result) => result.rule).filter(filterUniqueTruthy);
return `Detected ${results.length} ESLint reports and/or crashes. ${repositoryCount ? `
Scanned ${repositoryCount} repositories.` : ""}
${limitReached ? `
Reached maximum result count ${maxResultCount}.
Showing ${limitedResults.length}/${results.length}
` : ""}
Rules:${rules.map(formatRule).join("")}
<details>
<summary>Click to expand</summary>
Expand Down

0 comments on commit 7fff42d

Please sign in to comment.