...

Text file src/github.com/gin-gonic/gin/.golangci.yml

Documentation: github.com/gin-gonic/gin

     1run:
     2  timeout: 5m
     3linters:
     4  enable:
     5    - asciicheck
     6    - depguard
     7    - dogsled
     8    - durationcheck
     9    - errcheck
    10    - errorlint
    11    - exportloopref
    12    - gci
    13    - gofmt
    14    - goimports
    15    - gosec
    16    - misspell
    17    - nakedret
    18    - nilerr
    19    - nolintlint
    20    - revive
    21    - wastedassign
    22
    23linters-settings:
    24  gosec:
    25    # To select a subset of rules to run.
    26    # Available rules: https://github.com/securego/gosec#available-rules
    27    # Default: [] - means include all rules
    28    includes:
    29      - G102
    30      - G106
    31      - G108
    32      - G109
    33      - G111
    34      - G112
    35      - G201
    36      - G203
    37
    38issues:
    39  exclude-rules:
    40    - linters:
    41        - structcheck
    42        - unused
    43      text: "`data` is unused"
    44    - linters:
    45        - staticcheck
    46      text: "SA1019:"
    47    - linters:
    48        - revive
    49      text: "var-naming:"
    50    - linters:
    51        - revive
    52      text: "exported:"
    53    - path: _test\.go
    54      linters:
    55        - gosec # security is not make sense in tests
    56    - linters:
    57        - revive
    58      path: _test\.go

View as plain text