From 47b2e948eb6ad03f2a3d3442478943674a113210 Mon Sep 17 00:00:00 2001 From: Omar Sy Date: Tue, 9 Jul 2024 21:52:16 +0200 Subject: [PATCH] feat: some typo --- problem-matchers.json | 2 +- src/install.ts | 2 +- src/run.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/problem-matchers.json b/problem-matchers.json index 6032b7f7aa..4fa4a49fb7 100644 --- a/problem-matchers.json +++ b/problem-matchers.json @@ -1,7 +1,7 @@ { "problemMatcher": [ { - "owner": "golangci-lint-colored-line-number", + "owner": "gno-lint-colored-line-number", "severity": "error", "pattern": [ { diff --git a/src/install.ts b/src/install.ts index f25e2c3001..a5507a032e 100644 --- a/src/install.ts +++ b/src/install.ts @@ -48,7 +48,7 @@ export async function installLint(versionConfig: VersionConfig, mode: InstallMod * @returns path to installed binary of golangci-lint. */ export async function goInstall(versionConfig: VersionConfig): Promise { - core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`) + core.info(`Installing gno-lint ${versionConfig.TargetVersion}...`) const startedAt = Date.now() diff --git a/src/run.ts b/src/run.ts index 7e3fa1c1a3..d5f6092b91 100644 --- a/src/run.ts +++ b/src/run.ts @@ -256,7 +256,7 @@ async function runLint(lintPath: string, patchPath: string): Promise { cmdArgs.cwd = path.resolve(workingDirectory) } - const cmd = `${lintPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd() + const cmd = `${lintPath} lint ${addedArgs.join(` `)} ${userArgs}`.trimEnd() core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`) @@ -264,7 +264,7 @@ async function runLint(lintPath: string, patchPath: string): Promise { try { const res = await execShellCommand(cmd, cmdArgs) printOutput(res) - core.info(`golangci-lint found no issues`) + core.info(`gnoci-lint found no issues`) } catch (exc) { // This logging passes issues to GitHub annotations but comments can be more convenient for some users. // TODO: support reviewdog or leaving comments by GitHub API. @@ -273,18 +273,18 @@ async function runLint(lintPath: string, patchPath: string): Promise { if (exc.code === 1) { core.setFailed(`issues found`) } else { - core.setFailed(`golangci-lint exit with code ${exc.code}`) + core.setFailed(`gnoci-lint exit with code ${exc.code}`) } } - core.info(`Ran golangci-lint in ${Date.now() - startedAt}ms`) + core.info(`Ran gnoci-lint in ${Date.now() - startedAt}ms`) } export async function run(): Promise { try { const { lintPath, patchPath } = await core.group(`prepare environment`, prepareEnv) core.addPath(path.dirname(lintPath)) - await core.group(`run golangci-lint`, () => runLint(lintPath, patchPath)) + await core.group(`run gnoci-lint`, () => runLint(lintPath, patchPath)) } catch (error) { core.error(`Failed to run: ${error}, ${error.stack}`) core.setFailed(error.message)