From 61261e41d6fadf3f282f7c7d286c8c602d32d90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Wed, 9 Oct 2024 08:17:56 +0900 Subject: [PATCH] chore: annotations --- .github/empty-string-checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/empty-string-checker.ts b/.github/empty-string-checker.ts index 5cbcc5a..10da833 100644 --- a/.github/empty-string-checker.ts +++ b/.github/empty-string-checker.ts @@ -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("/") || []; @@ -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('""')) { violations.push({ file: currentFile, - line: lineNumber, + line: ++lineNumber, content: line.substring(1), }); }