github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/configs/gocritic.yml (about) 1 linters-settings: 2 gocritic: 3 enabled-checks: 4 - rangeValCopy 5 - flagDeref 6 - wrapperFunc 7 - ruleguard 8 settings: 9 rangeValCopy: 10 sizeThreshold: 2 11 ruleguard: 12 debug: dupSubExpr 13 failOn: dsl,import 14 # comma-separated paths to ruleguard files. 15 # The ${configDir} is substituted by the directory containing the golangci-lint config file. 16 # Note about the directory structure for functional tests: 17 # The ruleguard files used in functional tests cannot be under the 'testdata' directory. 18 # This is because they import the 'github.com/quasilyte/go-ruleguard/dsl' package, 19 # which needs to be added to go.mod. The testdata directory is ignored by go mod. 20 rules: '${configDir}/../../ruleguard/strings_simplify.go,${configDir}/../../ruleguard/dup.go'