gitlab.com/gitlab-org/labkit@v1.21.0/.golangci.yml (about) 1 run: 2 concurrency: 8 3 deadline: 1m 4 issues-exit-code: 1 5 modules-download-mode: readonly 6 tests: true 7 skip-dirs: 8 - vendor 9 build-tags: 10 - continuous_profiler_stackdriver 11 - tracer_static 12 - tracer_static_jaeger 13 - tracer_static_lightstep 14 - tracer_static_datadog 15 16 output: 17 format: colored-line-number 18 print-issued-lines: true 19 print-linter-name: true 20 21 linters-settings: 22 errcheck: 23 check-type-assertions: false 24 cyclop: 25 maxComplexity: 10 26 govet: 27 check-shadowing: false 28 goconst: 29 min-len: 3 30 min-occurrences: 3 31 lll: 32 line-length: 160 33 gosec: 34 # To specify a set of rules to explicitly exclude. 35 # Available rules: https://github.com/securego/gosec#available-rules 36 excludes: 37 - G102 38 39 linters: 40 enable-all: true 41 disable: 42 - dupl 43 - exhaustivestruct 44 - forcetypeassert 45 - funlen 46 - gochecknoglobals 47 - gofumpt 48 - gomnd 49 - nlreturn 50 - paralleltest 51 - scopelint # archived 52 - testpackage 53 - unparam 54 - wrapcheck 55 - wsl 56 57 issues: 58 exclude-rules: 59 - path: _test\.go 60 linters: 61 - bodyclose 62 - buildir 63 - errcheck 64 - goerr113 65 - noctx 66 - staticcheck 67 - typecheck 68 - wsl