flamingo.me/flamingo-commerce/v3@v3.11.0/.golangci.yml (about)

     1  # Options for analysis running.
     2  run:
     3    concurrency: 4
     4    timeout: 5m
     5    tests: true
     6    # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
     7    skip-dirs-use-default: true
     8    modules-download-mode: readonly
     9    allow-parallel-runners: false
    10    go: '1.21'
    11  
    12  # output configuration options
    13  output:
    14    # Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
    15    #
    16    # Multiple can be specified by separating them by comma, output can be provided
    17    # for each of them by separating format name and path by colon symbol.
    18    # Output path can be either `stdout`, `stderr` or path to the file to write to.
    19    # Example: "checkstyle:report.json,colored-line-number"
    20    #
    21    # Default: colored-line-number
    22    format: colored-line-number
    23    print-issued-lines: true
    24    print-linter-name: true
    25    uniq-by-line: true
    26    sort-results: true
    27  
    28  linters:
    29    disable-all: true
    30    enable:
    31      - bidichk
    32      - bodyclose
    33      - containedctx
    34      - contextcheck
    35      - cyclop
    36      - durationcheck
    37      - errcheck
    38      - errname
    39      - errorlint
    40      - exhaustive
    41      - exportloopref
    42      - forbidigo
    43      - forcetypeassert
    44      - gocognit
    45      - goconst
    46      - gocritic
    47      - goerr113
    48      - gofmt
    49      - gomnd
    50      - gomoddirectives
    51      - gosec
    52      - gosimple
    53      - govet
    54      - grouper
    55      - ineffassign
    56      - makezero
    57      - misspell
    58      - nakedret
    59      - nestif
    60      - nilerr
    61      - nilnil
    62      - noctx
    63      - nolintlint
    64      - nosprintfhostport
    65      - paralleltest
    66      - prealloc
    67      - predeclared
    68      - revive
    69      - staticcheck
    70      - tenv
    71      - testpackage
    72      - thelper
    73      - tparallel
    74      - typecheck
    75      - unconvert
    76      - unparam
    77      - unused
    78      - usestdlibvars
    79      - varnamelen
    80      - wrapcheck
    81      - wsl
    82  
    83  issues:
    84    new: true
    85    fix: false
    86    exclude-rules:
    87      - path: _test\.go
    88        linters:
    89          - containedctx
    90          - forcetypeassert
    91          - goconst
    92          - goerr113
    93          - varnamelen
    94          - wrapcheck
    95  
    96  linters-settings:
    97    gomnd:
    98      ignored-functions:
    99        - context.WithTimeout
   100    nolintlint:
   101      require-specific: true
   102      require-explanation: true
   103    revive:
   104      rules:
   105        - name: var-naming
   106          disabled: true
   107    varnamelen:
   108      max-distance: 10
   109      ignore-type-assert-ok: true
   110      ignore-map-index-ok: true
   111      ignore-chan-recv-ok: true
   112      ignore-names:
   113        - err
   114        - id
   115      ignore-decls:
   116        - i int