Commit ec02134
committed
chore(lint): exclude modernize newexpr rule for Ptr calls
The modernize/newexpr rule incorrectly suggests replacing github.Ptr(x)
with new(x), but new() takes a type not an expression — the auto-fix
generates invalid Go code. Exclude this specific rule pattern.1 parent d7d6a15 commit ec02134
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments