Skip to content

Commit

Permalink
Update linter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Apr 11, 2024
1 parent 1ae7532 commit 8e22939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bun-internal-test/src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for (const banned of BANNED) {
.filter(line => !IGNORED_FOLDERS.some(folder => line.includes(folder)))
.map(line => {
const [path, lineNumber, ...text] = line.split(":");
return { path, lineNumber, reason: banned, text: text.join(":") };
return { path, lineNumber, reason: `**${banned}** is banned`, text: text.join(":") };
});
// Check if we got any output
// Split the output into lines
Expand Down Expand Up @@ -60,7 +60,7 @@ if (ci) {
action.setFailed(`${bad.length} lint failures`);
}
action.setOutput("count", bad.length);
action.setOutput("text_output", bad.map(m => `- ${link(m)}: :red_circle: ${m.reason}`).join("\n"));
action.setOutput("text_output", bad.map(m => `- ${link(m)}: ${m.reason}`).join("\n"));
action.setOutput("json_output", JSON.stringify(bad));
action.summary.addRaw(report);
await action.summary.write();
Expand Down

0 comments on commit 8e22939

Please sign in to comment.