Skip to content

Commit

Permalink
feat: improve 'no go files to analyze' message (#4536)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Mar 19, 2024
1 parent 6914447 commit cba35e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lint/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit cba35e1

Please sign in to comment.