Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 6d4743a

Browse files
committed
don't run golangci-lint on abs path
1 parent edd5292 commit 6d4743a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/analyze/linters/golinters/golangci_lint.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"path/filepath"
87

98
"github.com/golangci/golangci-lint/pkg/printers"
109
"github.com/golangci/golangci-worker/app/analytics"
@@ -34,7 +33,6 @@ func (g GolangciLint) Run(ctx context.Context, exec executors.Executor) (*result
3433
"--new-from-rev=",
3534
"--new-from-patch=" + g.PatchPath,
3635
}
37-
args = append(args, filepath.Join(exec.WorkDir(), "..."))
3836

3937
out, runErr := exec.Run(ctx, g.Name(), args...)
4038
rawJSON := []byte(out)

0 commit comments

Comments
 (0)