Skip to content

Commit 01172d3

Browse files
authored
SONARGO-680 Add input for "goLangCiLint" task to trigger task re-run (#62)
There are changes in golangci-lint: https://golangci-lint.run/docs/product/migration-guide/ Removed: --go string The --out-format replaced by other flags, --output.checkstyle.path in our case
1 parent 2ab4fbd commit 01172d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gradle-modules/src/main/kotlin/org.sonarsource.cloud-native.go-binary-builder.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ if (isCi()) {
8686
commandLine(
8787
"golangci-lint",
8888
"run",
89-
"--go=${inputs.properties["goVersion"]}",
90-
"--out-format=checkstyle:${reportPath.get().asFile}"
89+
"--output.checkstyle.path",
90+
"${reportPath.get().asFile}"
9191
)
9292
// golangci-lint returns non-zero exit code if there are issues, we don't want to fail the build in this case.
9393
// A report with issues will be later ingested by SonarQube.

0 commit comments

Comments
 (0)