Skip to content

Commit

Permalink
chore: annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 8, 2024
1 parent 57077f6 commit 61261e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/empty-string-checker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from "@actions/core";
import { Octokit } from "@octokit/rest";
import simpleGit from "simple-git";
import * as core from "@actions/core";

const token = process.env.GITHUB_TOKEN;
const [owner, repo] = process.env.GITHUB_REPOSITORY?.split("/") || [];
Expand Down Expand Up @@ -61,11 +61,11 @@ function parseDiffForEmptyStrings(diff: string) {
currentFile = line.replace("+++ b/", "");
lineNumber = 0;
} else if (line.startsWith("+") && !line.startsWith("+++")) {
lineNumber++;
++lineNumber;
if (line.includes('""')) {

Check warning on line 65 in .github/empty-string-checker.ts

View workflow job for this annotation

GitHub Actions / check-for-empty-strings

Empty string found: currentFile = line.replace("+++ b/", "");
violations.push({
file: currentFile,
line: lineNumber,
line: ++lineNumber,
content: line.substring(1),
});

Check warning on line 70 in .github/empty-string-checker.ts

View workflow job for this annotation

GitHub Actions / check-for-empty-strings

Empty string found: if (line.includes('""')) {
}
Expand Down

0 comments on commit 61261e4

Please sign in to comment.