github.com/opensearch-project/opensearch-go/v2@v2.3.0/.golangci.yml (about) 1 run: 2 modules-download-mode: readonly 3 issues-exit-code: 0 4 5 linters-settings: 6 exhaustive: 7 default-signifies-exhaustive: false 8 gci: 9 sections: 10 - standard 11 - default 12 - prefix(github.com/opensearch-project/opensearch-go) 13 goconst: 14 min-occurrences: 5 15 ignore-tests: true 16 godot: 17 scope: toplevel 18 exclude: 19 - go-sumtype:decl 20 - check interfaces 21 capital: true 22 godox: 23 keywords: 24 - BUG 25 - FIXME 26 - HACK 27 goimports: 28 local-prefixes: github.com/opensearch-project/opensearch-go 29 gosimple: 30 go: "1.18" 31 checks: ["all"] 32 lll: 33 line-length: 130 34 tab-width: 4 35 nolintlint: 36 allow-unused: false 37 allow-leading-space: false 38 allow-no-explanation: [] 39 require-explanation: true 40 require-specific: true 41 staticcheck: 42 go: "1.18" 43 checks: ["all"] 44 stylecheck: 45 go: "1.18" 46 checks: ["all"] 47 dot-import-whitelist: [] 48 initialisms: [] 49 http-status-code-whitelist: [] 50 unparam: 51 check-exported: true 52 unused: 53 go: "1.18" 54 whitespace: 55 multi-if: false 56 multi-func: false 57 tagliatelle: 58 59 linters: 60 enable-all: true 61 disable: 62 # TODO: enable one by one 63 - tparallel 64 - gofmt 65 - goimports 66 - ineffassign 67 - gci 68 - paralleltest 69 - maintidx 70 - unparam 71 - goconst 72 - wastedassign 73 - gosimple 74 - dupl 75 - structcheck 76 - unused 77 - nestif 78 - errorlint 79 - lll 80 - gocyclo 81 - prealloc 82 - bodyclose 83 - whitespace 84 - gofumpt 85 - godot 86 - gocritic 87 - gocognit 88 - unconvert 89 - errchkjson 90 - thelper 91 - ireturn 92 - forbidigo 93 - containedctx 94 - tagliatelle 95 - cyclop 96 - errcheck 97 - exhaustivestruct 98 - forcetypeassert 99 - funlen 100 - gochecknoglobals 101 - gochecknoinits 102 - goerr113 103 - gomnd 104 - gosec 105 - varnamelen 106 - wrapcheck 107 - noctx 108 - staticcheck 109 - stylecheck 110 - golint 111 - interfacer 112 - maligned 113 - nlreturn 114 - scopelint 115 - testpackage 116 - wsl 117 - ifshort