go-clean-template

Форк
0
/
.golangci.yml 
137 строк · 2.2 Кб
1
linters-settings:
2
  gci:
3
    local-prefixes: github.com/evrone/go-clean-template
4
  dupl:
5
    threshold: 100
6
  errorlint:
7
    errorf: true
8
  errcheck:
9
    check-type-assertions: true
10
    check-blank: true
11
  exhaustive:
12
    check-generated: false
13
    default-signifies-exhaustive: false
14
  funlen:
15
    lines: 65
16
    statements: 40
17
  gocognit:
18
    min-complexity: 15
19
  gocyclo:
20
    min-complexity: 10
21
  goconst:
22
    min-len: 2
23
    min-occurrences: 2
24
  gocritic:
25
    enabled-tags:
26
      - diagnostic
27
      - experimental
28
      - opinionated
29
      - performance
30
      - style
31
    disabled-checks:
32
      - dupImport
33
      - unnecessaryBlock
34
  gofumpt:
35
    extra-rules: true
36
  gomnd:
37
    settings:
38
      mnd:
39
        checks:
40
          - argument
41
          - case
42
          - condition
43
          - operation
44
          - return
45
  govet:
46
    check-shadowing: true
47
  misspell:
48
    locale: US
49
  nestif:
50
    min-complexity: 4
51
  nolintlint:
52
    require-explanation: true
53
    require-specific: true
54

55
linters:
56
  disable-all: true
57
  enable:
58
    - asciicheck
59
    - bodyclose
60
    - cyclop
61
    - deadcode
62
    - depguard
63
    - dogsled
64
    - dupl
65
    - durationcheck
66
    - errcheck
67
    - errorlint
68
    - exhaustive
69
    - exportloopref
70
    - forbidigo
71
    - funlen
72
    - gci
73
    - gochecknoglobals
74
    - gochecknoinits
75
    - gocognit
76
    - goconst
77
    - gocritic
78
    - gocyclo
79
    - godot
80
    - godox
81
    - goerr113
82
    - gofmt
83
    - gofumpt
84
    - goimports
85
    - gomnd
86
    - gomodguard
87
    - goprintffuncname
88
    - gosec
89
    - gosimple
90
    - govet
91
    - ineffassign
92
    - makezero
93
    - misspell
94
    - nakedret
95
    - nestif
96
    - nlreturn
97
    - noctx
98
    - nolintlint
99
    - paralleltest
100
    - predeclared
101
    - revive
102
    - rowserrcheck
103
    - sqlclosecheck
104
    - staticcheck
105
    - structcheck
106
    - stylecheck
107
    - tparallel
108
    - thelper
109
    - typecheck
110
    - unconvert
111
    - unparam
112
    - unused
113
    - varcheck
114
    - wsl
115
    - whitespace
116

117
# disable:
118
#    - exhaustivestruct
119
#    - ifshort
120
#    - goheader
121
#    - prealloc
122
#    - testpackage
123
#    - wrapcheck
124

125
issues:
126
  exclude-rules:
127
    - path: integration-test
128
      linters:
129
        - paralleltest
130
        - godot
131
    - path: internal/controller/http
132
      linters:
133
        - godot
134

135
run:
136
  skip-dirs:
137
    - docs
138

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.