File: .golangci.yml

package info (click to toggle)
golang-github-mmcloughlin-avo 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 15,024 kB
  • sloc: xml: 71,029; asm: 14,862; sh: 194; makefile: 21; ansic: 11
file content (59 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download
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
run:
  timeout: 5m
linters:
  enable-all: true
  disable:
    - cyclop
    - deadcode
    - errname
    - exhaustruct
    - exhaustivestruct
    - forbidigo
    - forcetypeassert
    - funlen
    - gochecknoglobals
    - gochecknoinits
    - godox
    - goerr113
    - golint
    - gomnd
    - gosec
    - ifshort
    - interfacer
    - ireturn
    - lll
    - maligned
    - nlreturn
    - nonamedreturns
    - nosnakecase
    - paralleltest
    - prealloc
    - scopelint
    - structcheck
    - tagliatelle
    - testpackage
    - unparam
    - varcheck
    - varnamelen
    - wrapcheck
    - wsl
linters-settings:
  depguard:
    list-type: whitelist
    packages:
      - github.com/mmcloughlin/avo
      - golang.org/x/
  gci:
    sections:
      - standard
      - default
      - prefix(github.com/mmcloughlin/avo)
issues:
  exclude-use-default: false
  exclude:
    # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
    - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
    # gocritic: https://github.com/go-critic/go-critic/issues/762
    - " with `(len|cap|real|imag)`"
    # We want to allow all caps in certain cases.
    - "ALL_CAPS in Go names"