gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

.golangci.yml (1031B)


      1 run:
      2   timeout: 5m
      3 linters:
      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 
     23 linters-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 
     38 issues:
     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