Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/golangci-lint/golangci-lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ func main() {
var isError bool

for _, workspace := range npm.MustGetWorkspaces(".") {
schemasPath := workspace + "/schemas"
Comment thread
rickardsjp marked this conversation as resolved.
Outdated
if _, err := os.Stat(schemasPath); os.IsNotExist(err) {
// No schemas, skip go validation
logrus.Infof("skipping golangci-lint for %s (no schemas)", workspace)
continue
}

cmd := exec.Command("golangci-lint", "run")
cmd.Dir = workspace
cmd.Stdout = os.Stdout
Expand Down