zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/golangcilint.yaml (about)

     1  run:
     2    deadline: 60m
     3    skip-dirs:
     4      - "internal"
     5  
     6  linters:
     7    enable-all: true
     8    disable: funlen,gocognit,exhaustivestruct,paralleltest,forbidigo,ireturn,wrapcheck,exhaustive,maintidx,exhaustruct,nosnakecase,interfacer,structcheck,varcheck,deadcode,ifshort,golint,scopelint,maligned,rowserrcheck,sqlclosecheck,revive,musttag,depguard
     9  
    10  linters-settings:
    11    dupl:
    12      threshold: 200
    13    nestif:
    14      min-complexity: 26
    15    cyclop:
    16      max-complexity: 40
    17      skip-tests: true
    18    varnamelen:
    19      check-return: true
    20      ignore-type-assert-ok: true
    21      ignore-map-index-ok: true
    22      ignore-chan-recv-ok: true
    23      ignore-names:
    24        - err
    25        - ok
    26        - gc
    27        - wg
    28      ignore-decls:
    29        - n int
    30        - i int
    31        - r *os.File
    32        - w *os.File
    33        - to int64
    34        - l *ldap.Conn
    35        - w http.ResponseWriter
    36        - r *http.Request
    37    gci:
    38      sections:
    39        - standard
    40        - default
    41        - prefix(zotregistry.io/zot)
    42    wsl:
    43      allow-assign-and-anything: true
    44      enforce-err-cuddling: true
    45    nolintlint:
    46      allow-unused: true
    47    gomnd:
    48      settings:
    49        mnd:
    50          checks: argument,case,condition,operation,return,assign
    51          ignored-numbers: 10,64
    52    gomoddirectives:
    53      replace-allow-list: []
    54  issues:
    55    exclude-rules:
    56      - path: pkg/extensions/search/schema.resolvers.go
    57        linters:
    58          - lll
    59          - varnamelen
    60          - gci