File: .golangci.yml

package info (click to toggle)
golang-github-opencontainers-selinux 1.11.0%2Bds1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 272 kB
  • sloc: makefile: 30
file content (36 lines) | stat: -rw-r--r-- 1,490 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
---
run:
  concurrency: 6
  deadline: 5m
linters:
  enable:
    - dupword       # Detects duplicate words.
    - errorlint     # Detects code that may cause problems with Go 1.13 error wrapping.
    - exportloopref # Detects pointers to enclosing loop variables.
    - gocritic      # Metalinter; detects bugs, performance, and styling issues.
    - gofumpt       # Detects whether code was gofumpt-ed.
    - gosec         # Detects security problems.
    - misspell      # Detects commonly misspelled English words in comments.
    - nilerr        # Detects code that returns nil even if it checks that the error is not nil.
    - nolintlint    # Detects ill-formed or insufficient nolint directives.
    - prealloc      # Detects slice declarations that could potentially be pre-allocated.
    - predeclared   # Detects code that shadows one of Go's predeclared identifiers
    - revive        # Metalinter; drop-in replacement for golint.
    - tenv          # Detects using os.Setenv instead of t.Setenv.
    - thelper       # Detects test helpers without t.Helper().
    - tparallel     # Detects inappropriate usage of t.Parallel().
    - unconvert     # Detects unnecessary type conversions.
linters-settings:
  govet:
    check-shadowing: true
    enable-all: true
    settings:
      shadow:
        strict: true
issues:
  max-issues-per-linter: 0
  max-same-issues: 0
  exclude-rules:
    - text: '^shadow: declaration of "err" shadows declaration'
      linters:
        - govet