You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gocritic: add support for variable substitution in ruleguard path settings (golangci#2308)
* Add variable for ruleguard config directory
* Add variable for ruleguard config directory
* Add variable for ruleguard config directory
* Add variable for ruleguard config directory
* Add unit tests
* Add unit tests for ruleguard
* Add unit tests for ruleguard
* Add unit tests for ruleguard
* Add unit tests for ruleguard, fix package name
Copy file name to clipboardExpand all lines: test/testdata/gocritic.go
+13
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ package testdata
5
5
import (
6
6
"flag"
7
7
"log"
8
+
"strings"
8
9
)
9
10
10
11
var_=*flag.Bool("global1", false, "") // ERROR `flagDeref: immediate deref in \*flag.Bool\(.global1., false, ..\) is most likely an error; consider using flag\.BoolVar`
0 commit comments