github.com/traefik/yaegi@v0.15.1/.golangci.toml (about) 1 [run] 2 deadline = "5m" 3 skip-files = [] 4 5 [linters-settings] 6 7 [linters-settings.govet] 8 check-shadowing = false 9 10 [linters-settings.gocyclo] 11 min-complexity = 12.0 12 13 [linters-settings.maligned] 14 suggest-new = true 15 16 [linters-settings.goconst] 17 min-len = 3.0 18 min-occurrences = 3.0 19 20 [linters-settings.misspell] 21 locale = "US" 22 23 [linters] 24 enable-all = true 25 disable = [ 26 "golint", # deprecated 27 "scopelint", # deprecated 28 "interfacer", # deprecated 29 "maligned", # deprecated 30 "exhaustivestruct", # deprecated 31 "lll", 32 "gas", 33 "dupl", 34 "prealloc", 35 "gocyclo", 36 "cyclop", 37 "gochecknoinits", 38 "gochecknoglobals", 39 "wsl", 40 "nlreturn", 41 "godox", 42 "funlen", 43 "gocognit", 44 "stylecheck", 45 "gomnd", 46 "testpackage", 47 "paralleltest", 48 "tparallel", 49 "goerr113", 50 "wrapcheck", 51 "nestif", 52 "exhaustive", 53 "exhaustruct", 54 "forbidigo", 55 "ifshort", 56 "forcetypeassert", 57 "varnamelen", 58 "nosnakecase", 59 "nonamedreturns", 60 "nilnil", 61 "maintidx", 62 "errorlint", # TODO: must be reactivate before fixes 63 ] 64 65 [issues] 66 exclude-use-default = false 67 max-per-linter = 0 68 max-same-issues = 0 69 exclude = [] 70 71 [[issues.exclude-rules]] 72 path = ".+_test\\.go" 73 linters = ["goconst"] 74 [[issues.exclude-rules]] 75 path = ".+_test\\.go" 76 text = "var-declaration:" 77 78 [[issues.exclude-rules]] 79 path = "interp/interp.go" 80 text = "`in` can be `io.Reader`" 81 [[issues.exclude-rules]] 82 path = "interp/interp.go" 83 text = "`out` can be `io.Writer`" 84 [[issues.exclude-rules]] 85 path = "interp/interp.go" 86 text = "`Panic` should conform to the `XxxError` format" 87 [[issues.exclude-rules]] 88 path = "interp/interp_eval_test.go" 89 linters = ["thelper"] 90 [[issues.exclude-rules]] 91 path = "interp/debugger.go" 92 linters = ["containedctx"]