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 0a22ada commit 529fa2a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/bun-internal-test/src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ if (report.length === 0) {
}

function link({ path, lineNumber, suggestion, banned }) {
action.error(suggestion, {
title: banned + " is banned",
action.error(`Lint failure: ${banned} is banned, ${suggestion}`, {
file: path,
startLine: lineNumber,
endLine: lineNumber,
startLine: Number(lineNumber),
endLine: Number(lineNumber),
});
return `[\`${path}:${lineNumber}\`](https://github.com/oven-sh/bun/blob/${process.env.GITHUB_SHA}/${path}#L${lineNumber})`;
}
Expand Down

0 comments on commit 529fa2a

Please sign in to comment.