mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-07 20:09:28 -04:00
feat: improve 'no go files to analyze' message (#4536)
This commit is contained in:
parent
69144471ca
commit
cba35e1d53
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func (cl *ContextBuilder) Build(ctx context.Context, log logutils.Log, linters [
|
|||
}
|
||||
|
||||
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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue