Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 8, 2024
1 parent ea798ab commit 9e2370b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/empty-string-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ async function main() {

if (violations.length > 0) {
violations.forEach(({ file, line, content }) => {
core.warning("⚠️ EMPTY STRING DETECTED ⚠️", {
file,
startLine: line,
});
core.warning(
"Detected an empty string.\n\nIf this is during variable initialization, consider using a different approach.\nFor more information, visit: https://www.github.com/ubiquity/ts-template/issues/31",
{
file,
startLine: line,
}
);
});

// core.setFailed(`${violations.length} empty string${violations.length > 1 ? "s" : ""} detected in the code.`);
Expand Down

0 comments on commit 9e2370b

Please sign in to comment.