Commit 4b3fdfd
go/analysis/passes/printf: suppress diagnostic for Println("...%XX...")
A common form of literal string is a URL containing URL-escaped
characters. This CL causes the printf checker not to report a
"Println call has possible Printf formatting directive"
diagnostic for it.
+ test
Fixes golang/go#29854
Change-Id: Ib1dcc44dd8185da17f61296632ad030cb1e58420
Reviewed-on: https://go-review.googlesource.com/c/tools/+/650175
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Commit-Queue: Alan Donovan <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>1 parent fe883a8 commit 4b3fdfd
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
927 | | - | |
928 | | - | |
929 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
930 | 935 | | |
931 | 936 | | |
932 | 937 | | |
| |||
992 | 997 | | |
993 | 998 | | |
994 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
0 commit comments