Skip to content

Commit

Permalink
Update gofmt config
Browse files Browse the repository at this point in the history
  • Loading branch information
petertrr committed Dec 16, 2024
1 parent 0c46341 commit d627415
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sonar-go-to-slang/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ if (System.getenv("CI") == "true") {
// // spotless is enabled only for CI, because spotless relies on Go installation being available on the machine
spotless {
go {
def goVersion = providers.environmentVariable("GO_VERSION").getOrElse("1.21.8")
gofmt("go$goVersion")
def goVersion = providers.environmentVariable("GO_VERSION").getOrElse("1.23.4")
gofmt("go$goVersion").withGoExecutable(System.getenv("HOME") + "/go/bin/go")
target("*.go", "**/*.go")
targetExclude("**/*.pb.go")
}
}
// For now, these tasks rely on installation of Go performed by the call to make.sh
tasks.spotlessCheck {
dependsOn generateParserAndBuild
}
tasks.spotlessApply {
dependsOn generateParserAndBuild
}
}

0 comments on commit d627415

Please sign in to comment.