summaryrefslogtreecommitdiffstats
path: root/.golangci.yaml
blob: e2952569639a603dd0864302b02b6e7cc016fe1b (plain) (blame)
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
---
version: "2"
linters:
  default: none
  enable:
    - asciicheck
    - errcheck
    - govet
    - ineffassign
    - misspell
    - nolintlint
    - revive
    - staticcheck
    - unused
  settings:
    staticcheck:
      checks:
        - all
        - '-ST1000'  # disable the rule SA1000 pkg comment
        - '-ST1020'  # Exported methods comment style
    revive:
      confidence: 0.8
      severity: warning
      enable-all-rules: true
      rules:
        - name: cyclomatic
          arguments:
            - 7
        - name: cognitive-complexity
          arguments:
            - 9
        - name: argument-limit
          arguments:
            - 5
        - name: line-length-limit
          arguments:
            - 120
        - name: function-length
          arguments:
            - 20
            - 0
        - name: function-result-limit
          arguments:
            - 3
        - name: var-naming
          arguments:
            - []
            - []
            - - upperCaseConst: true
          disabled: true
        - name: add-constant
          disabled: true
        - name: max-public-structs
          disabled: true
        - name: banned-characters
          disabled: true
        - name: package-comments
          disabled: true
        - name: file-header
          disabled: true
        - name: exported
          disabled: true
issues:
  max-issues-per-linter: 0
  max-same-issues: 0
formatters:
  enable:
    - gofmt
    - goimports