Skip to content

Commit cba35e1

Browse files
authored
feat: improve 'no go files to analyze' message (#4536)
1 parent 6914447 commit cba35e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lint/context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (cl *ContextBuilder) Build(ctx context.Context, log logutils.Log, linters [
4343
}
4444

4545
if len(deduplicatedPkgs) == 0 {
46-
return nil, exitcodes.ErrNoGoFiles
46+
return nil, fmt.Errorf("%w: running `go mod tidy` may solve the problem", exitcodes.ErrNoGoFiles)
4747
}
4848

4949
ret := &linter.Context{

0 commit comments

Comments
 (0)