kesavand | c71914f | 2022-03-25 11:19:03 +0530 | [diff] [blame] | 1 | run: |
| 2 | timeout: 5m |
| 3 | deadline: 10m |
| 4 | |
| 5 | linters-settings: |
| 6 | govet: |
| 7 | check-shadowing: false |
| 8 | golint: |
| 9 | min-confidence: 0 |
| 10 | gocyclo: |
| 11 | min-complexity: 99 |
| 12 | maligned: |
| 13 | suggest-new: true |
| 14 | dupl: |
| 15 | threshold: 100 |
| 16 | goconst: |
| 17 | min-len: 2 |
| 18 | min-occurrences: 3 |
| 19 | misspell: |
| 20 | locale: US |
| 21 | goimports: |
| 22 | local-prefixes: github.com/Shopify/sarama |
| 23 | gocritic: |
| 24 | enabled-tags: |
| 25 | - diagnostic |
| 26 | - experimental |
| 27 | - opinionated |
| 28 | - performance |
| 29 | - style |
| 30 | disabled-checks: |
| 31 | - wrapperFunc |
| 32 | - ifElseChain |
| 33 | funlen: |
| 34 | lines: 300 |
| 35 | statements: 300 |
| 36 | |
| 37 | linters: |
| 38 | disable-all: true |
| 39 | enable: |
| 40 | - bodyclose |
| 41 | - deadcode |
| 42 | - depguard |
| 43 | - exportloopref |
| 44 | - dogsled |
| 45 | # - dupl |
| 46 | - errcheck |
| 47 | - funlen |
| 48 | - gochecknoinits |
| 49 | # - goconst |
| 50 | # - gocritic |
| 51 | - gocyclo |
| 52 | - gofmt |
| 53 | - goimports |
| 54 | # - golint |
| 55 | - gosec |
| 56 | # - gosimple |
| 57 | - govet |
| 58 | # - ineffassign |
| 59 | - misspell |
| 60 | # - nakedret |
| 61 | - nilerr |
| 62 | - paralleltest |
| 63 | # - scopelint |
| 64 | - staticcheck |
| 65 | - structcheck |
| 66 | # - stylecheck |
| 67 | - typecheck |
| 68 | - unconvert |
| 69 | - unused |
| 70 | - varcheck |
| 71 | - whitespace |
| 72 | |
| 73 | issues: |
| 74 | exclude: |
| 75 | - "G404: Use of weak random number generator" |
| 76 | exclude-rules: |
| 77 | # exclude some linters from running on certains files. |
| 78 | - path: functional.*_test\.go |
| 79 | linters: |
| 80 | - paralleltest |
| 81 | # maximum count of issues with the same text. set to 0 for unlimited. default is 3. |
| 82 | max-same-issues: 0 |