File: .golangci.yml

package info (click to toggle)
golang-github-minio-minio-go-v7 7.0.97-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,616 kB
  • sloc: makefile: 38; xml: 2
file content (72 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "2"
linters:
  disable-all: true
  enable:
    - durationcheck
    - gocritic
    - gomodguard
    - govet
    - ineffassign
    - misspell
    - revive
    - staticcheck
    - unconvert
    - unused
    - usetesting
    - whitespace
  settings:
    misspell:
      locale: US
    staticcheck:
      checks:
        - all
        - -SA1008
        - -SA1019
        - -SA4000
        - -SA9004
        - -ST1000
        - -ST1005
        - -ST1016
        - -ST1021
        - -ST1020
        - -U1000
  exclusions:
    generated: lax
    rules:
      - path: (.+)\.go$
        text: "empty-block:"
      - path: (.+)\.go$
        text: "unused-parameter:"
      - path: (.+)\.go$
        text: "dot-imports:"
      - path: (.+)\.go$
        text: "singleCaseSwitch: should rewrite switch statement to if statement"
      - path: (.+)\.go$
        text: "unlambda: replace"
      - path: (.+)\.go$
        text: "captLocal:"
      - path: (.+)\.go$
        text: "should have a package comment"
      - path: (.+)\.go$
        text: "ifElseChain:"
      - path: (.+)\.go$
        text: "elseif:"
      - path: (.+)\.go$
        text: "Error return value of"
      - path: (.+)\.go$
        text: "unnecessary conversion"
      - path: (.+)\.go$
        text: "Error return value is not checked"
issues:
  max-issues-per-linter: 100
  max-same-issues: 100
formatters:
  enable:
    - gofumpt
    - goimports
  exclusions:
    generated: lax
    paths:
      - third_party$
      - builtin$
      - examples$