github.com/thanos-io/thanos@v0.32.5/.golangci.yml (about) 1 # This file contains all available configuration options 2 # with their default values. 3 4 # options for analysis running 5 run: 6 # timeout for analysis, e.g. 30s, 5m, default is 1m 7 deadline: 5m 8 9 # exit code when at least one issue was found, default is 1 10 issues-exit-code: 1 11 12 # which dirs to skip: they won't be analyzed; 13 # can use regexp here: generated.*, regexp is applied on full path; 14 # default value is empty list, but next dirs are always skipped independently 15 # from this option's value: 16 # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ 17 skip-dirs: 18 - vendor 19 - internal/cortex 20 21 22 # output configuration options 23 output: 24 # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number" 25 format: colored-line-number 26 27 # print lines of code with issue, default is true 28 print-issued-lines: true 29 30 # print linter name in the end of issue text, default is true 31 print-linter-name: true 32 33 linters: 34 enable: 35 # Sorted alphabetically. 36 - errcheck 37 - goconst 38 - godot 39 - gofmt 40 - goimports 41 - gosimple 42 - govet 43 - ineffassign 44 - misspell 45 - staticcheck 46 - typecheck 47 - unparam 48 - unused 49 - exportloopref 50 - promlinter 51 52 linters-settings: 53 errcheck: 54 exclude: ./.errcheck_excludes.txt 55 misspell: 56 locale: US 57 goconst: 58 min-occurrences: 5 59 60 issues: 61 exclude-rules: 62 # We don't check metrics naming in the tests. 63 - path: _test\.go 64 linters: 65 - promlinter 66 # These are not being checked since these methods exist 67 # so that no one else could implement them. 68 - linters: 69 - unused 70 text: "SourceStoreAPI.implementsStoreAPI" 71 - linters: 72 - unused 73 text: "SourceStoreAPI.producesBlocks" 74 - linters: 75 - unused 76 text: "Source.producesBlocks" 77 - linters: 78 - unused 79 text: "newMockAlertmanager" 80 - linters: 81 - unused 82 text: "ruleAndAssert"