Skip to content

Commit

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

if (violations.length > 0) {
violations.forEach(({ file, line, content }) => {
core.warning(`Empty string found: ${content}`, {
core.warning("⚠️ EMPTY STRING DETECTED ⚠️", {
file,
startLine: line,
});
Expand Down Expand Up @@ -75,7 +75,7 @@ function parseDiffForEmptyStrings(diff: string) {
const violations: Array<{ file: string; line: number; content: string }> = [];
const diffLines = diff.split("\n");

let currentFile = "";
let currentFile: string;
let headLine = 0;
let inHunk = false;

Expand Down

0 comments on commit cdc89ca

Please sign in to comment.