...

Text file src/github.com/opencontainers/selinux/.golangci.yml

Documentation: github.com/opencontainers/selinux

     1---
     2run:
     3  concurrency: 6
     4  deadline: 5m
     5linters:
     6  enable:
     7    - dupword       # Detects duplicate words.
     8    - errorlint     # Detects code that may cause problems with Go 1.13 error wrapping.
     9    - exportloopref # Detects pointers to enclosing loop variables.
    10    - gocritic      # Metalinter; detects bugs, performance, and styling issues.
    11    - gofumpt       # Detects whether code was gofumpt-ed.
    12    - gosec         # Detects security problems.
    13    - misspell      # Detects commonly misspelled English words in comments.
    14    - nilerr        # Detects code that returns nil even if it checks that the error is not nil.
    15    - nolintlint    # Detects ill-formed or insufficient nolint directives.
    16    - prealloc      # Detects slice declarations that could potentially be pre-allocated.
    17    - predeclared   # Detects code that shadows one of Go's predeclared identifiers
    18    - revive        # Metalinter; drop-in replacement for golint.
    19    - tenv          # Detects using os.Setenv instead of t.Setenv.
    20    - thelper       # Detects test helpers without t.Helper().
    21    - tparallel     # Detects inappropriate usage of t.Parallel().
    22    - unconvert     # Detects unnecessary type conversions.
    23linters-settings:
    24  govet:
    25    check-shadowing: true
    26    enable-all: true
    27    settings:
    28      shadow:
    29        strict: true
    30issues:
    31  max-issues-per-linter: 0
    32  max-same-issues: 0
    33  exclude-rules:
    34    - text: '^shadow: declaration of "err" shadows declaration'
    35      linters:
    36        - govet

View as plain text