wal-g

Форк
0
/
.golangci.yml 
101 строка · 2.1 Кб
1
# This file contains all available configuration options
2
# with their default values.
3

4
# all available settings of specific linters
5
linters-settings:
6
  dupl:
7
    threshold: 400
8
  funlen:
9
    lines: 100
10
    statements: 50
11
  gocritic:
12
    enabled-tags:
13
      - performance
14
    disabled-tags:
15
      - diagnostic
16
      - experimental
17
      - opinionated
18
      - style
19
    settings:
20
      hugeParam:
21
        sizeThreshold: 170 # temporary, default is 80
22
  gocyclo:
23
    min-complexity: 15
24
  govet:
25
    check-shadowing: false
26
  misspell:
27
    locale: US
28
  lll:
29
    line-length: 140
30
  staticcheck:
31
    # SA1019 is disabled until WAL-G has migrated from the deprecated package golang.org/x/crypto/openpgp
32
    checks: [ "all", "-SA1019" ]
33
  revive:
34
    rules:
35
      - name: blank-imports
36
      - name: context-as-argument
37
      - name: context-keys-type
38
      - name: dot-imports
39
      - name: error-return
40
      - name: error-naming
41
      - name: exported
42
      - name: increment-decrement
43
      - name: var-naming
44
      - name: var-declaration
45
      - name: package-comments
46
      - name: range
47
      - name: receiver-naming
48
      - name: time-naming
49
      - name: unexported-return
50
      - name: indent-error-flow
51
      - name: errorf
52
      - name: empty-block
53
      - name: unreachable-code
54
      - name: redefines-builtin-id
55

56
linters:
57
  # please, do not use `enable-all`: it's deprecated and will be removed soon.
58
  # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
59
  disable-all: true
60
  enable:
61
    - bodyclose
62
    - dupl
63
    - errcheck
64
    - exportloopref
65
    - funlen
66
    - gocritic
67
    - gocyclo
68
    - govet
69
    - ineffassign
70
    - misspell
71
    - nakedret
72
    - revive
73
    - staticcheck
74
    - typecheck
75
    - unconvert
76
    - unparam
77
    - unused
78
    - lll
79
    - stylecheck
80
    - gosimple
81
    - whitespace
82

83
run:
84
  go: "1.20"
85
  timeout: 5m
86
  modules-download-mode: readonly
87
  skip-dirs:
88
    - "tests_func"
89
    - "tmp"
90
    - "submodules"
91
    - "testtools"
92
  skip-files:
93
    - ".*_test.go$"
94

95
severity:
96
  default-severity: error
97
  rules:
98
    - linters:
99
      - godox
100
      - unused
101
      severity: info
102

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

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

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

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