github.com/nikandfor/tlog@v0.21.5-0.20231108111739-3ef89426a96d/.golangci.yml (about)

     1  run:
     2    #modules-download-mode: readonly
     3  linters-settings:
     4    govet:
     5      check-shadowing: false
     6    golint:
     7      min-confidence: 0
     8    gocognit:
     9      min-complexity: 30
    10    cyclop:
    11      max-complexity: 30
    12    fieldalignment:
    13      suggest-new: true
    14    dupl:
    15      threshold: 100
    16    goconst:
    17      min-len: 2
    18      min-occurrences: 3
    19    gosec:
    20      excludes:
    21        - G108
    22        - G114
    23    revive:
    24      rules:
    25        - name: unused-parameter
    26          disabled: true
    27    depguard:
    28      list-type: whitelist
    29      packages:
    30        - github.com/beorn7/perks/quantile
    31        - github.com/fsnotify/fsnotify
    32        - github.com/getsentry/sentry-go
    33        - github.com/gin-gonic/gin
    34        - github.com/nikandfor/assert
    35        - github.com/nikandfor/cli
    36        - github.com/nikandfor/errors
    37        - github.com/nikandfor/goid
    38        - github.com/nikandfor/graceful
    39        - github.com/nikandfor/hacked
    40        - github.com/nikandfor/loc
    41        - github.com/nikandfor/quantile
    42        - github.com/nikandfor/tlog
    43        - github.com/opentracing/opentracing-go
    44        - github.com/prometheus/client_golang
    45        - github.com/prometheus/client_model
    46        - github.com/stretchr/testify/assert
    47        - github.com/stretchr/testify/require
    48        - go.opentelemetry.io/otel
    49        - golang.org/x
    50    misspell:
    51    lll:
    52      line-length: 170
    53    goimports:
    54      local-prefixes: github.com/nikandfor/tlog
    55    prealloc:
    56      simple: true
    57      for-loops: true
    58    gocritic:
    59      enabled-tags:
    60        - experimental
    61        - performance
    62        - style
    63      disabled-checks:
    64        - appendAssign
    65        - appendCombine
    66        - builtinShadow
    67        - commentedOutCode
    68        - octalLiteral
    69        - unnamedResult
    70        - whyNoLint
    71        - yodaStyleExpr
    72  
    73  linters:
    74    enable-all: true
    75    disable:
    76      - cyclop
    77      - exhaustive
    78      - exhaustivestruct
    79      - exhaustruct
    80      - forcetypeassert
    81      - funlen
    82      - gci
    83      - gochecknoglobals
    84      - gochecknoinits
    85      - gocognit
    86      - goconst
    87      - gocyclo
    88      - godox
    89      - goerr113
    90      - golint
    91      - gomnd
    92      - ifshort
    93      - ireturn
    94      - lll
    95      - maintidx
    96      - maligned
    97      - nakedret
    98      - nestif
    99      - nlreturn
   100      - nonamedreturns
   101      - nosnakecase
   102      - paralleltest
   103      - prealloc
   104      - predeclared
   105      - testpackage
   106      - thelper
   107      - typecheck
   108      - unparam
   109      - varnamelen
   110      - wrapcheck
   111      - wsl