feat: improve 'no go files to analyze' message (#4536)
This commit is contained in:
parent
69144471ca
commit
cba35e1d53
@ -43,7 +43,7 @@ func (cl *ContextBuilder) Build(ctx context.Context, log logutils.Log, linters [
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(deduplicatedPkgs) == 0 {
|
if len(deduplicatedPkgs) == 0 {
|
||||||
return nil, exitcodes.ErrNoGoFiles
|
return nil, fmt.Errorf("%w: running `go mod tidy` may solve the problem", exitcodes.ErrNoGoFiles)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret := &linter.Context{
|
ret := &linter.Context{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user