Skip to content

Commit 1bd9705

Browse files
committed
chore: deprecate exportloopref
1 parent adbdfdb commit 1bd9705

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/lint/lintersdb/builder_linter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
278278
WithSince("v1.28.0").
279279
WithPresets(linter.PresetBugs).
280280
WithLoadForGoAnalysis().
281-
WithURL("https://github.com/kyoh86/exportloopref"),
281+
WithURL("https://github.com/kyoh86/exportloopref").
282+
DeprecatedWarning("Since Go1.22 (loopvar) this linter is no longer relevant.", "v1.60.2", "copyloopvar"),
282283

283284
linter.NewConfig(forbidigo.New(&cfg.LintersSettings.Forbidigo)).
284285
WithSince("v1.34.0").

0 commit comments

Comments
 (0)