Skip to content

Commit 262dd6d

Browse files
committed
ireturn:
- Added instruction to not check `nolint` directive (already checked) by `golangci-lint`
1 parent a7c175b commit 262dd6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/golinters/ireturn.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter {
1616
cfg := map[string]map[string]any{}
1717
if settings != nil {
1818
cfg[a.Name] = map[string]any{
19-
"allow": strings.Join(settings.Allow, ","),
20-
"reject": strings.Join(settings.Reject, ","),
19+
"allow": strings.Join(settings.Allow, ","),
20+
"reject": strings.Join(settings.Reject, ","),
21+
"nonolint": true,
2122
}
2223
}
2324

0 commit comments

Comments
 (0)