...

Text file src/github.com/fergusstrange/embedded-postgres/.golangci.yml

Documentation: github.com/fergusstrange/embedded-postgres

     1linters:
     2  disable-all: true
     3  enable:
     4    - deadcode
     5    - errcheck
     6    - gosimple
     7    - govet
     8    - ineffassign
     9    - staticcheck
    10    - structcheck
    11    - typecheck
    12    - unused
    13    - varcheck
    14    - bodyclose
    15    - depguard
    16    - dogsled
    17    - dupl
    18    - funlen
    19    - gochecknoglobals
    20    - gochecknoinits
    21    - gocognit
    22    - goconst
    23    - gocritic
    24    - gocyclo
    25    - godox
    26    - gofmt
    27    - goimports
    28    - revive
    29    - misspell
    30    - nakedret
    31    - prealloc
    32    - exportloopref
    33    - stylecheck
    34    - unconvert
    35    - unparam
    36    - whitespace
    37    - wsl
    38issues:
    39  exclude-use-default: false
    40  exclude:
    41    - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
    42    - ST1000
    43    - func name will be used as test\.Test.* by other packages, and that stutters; consider calling this
    44    - (possible misuse of unsafe.Pointer|should have signature)
    45    - ineffective break statement. Did you mean to break out of the outer loop
    46    - Use of unsafe calls should be audited
    47    - Subprocess launch(ed with variable|ing should be audited)
    48    - G104
    49    - (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
    50    - Potential file inclusion via variable
    51  exclude-rules:
    52    - path: '(.+)_test\.go'
    53      linters:
    54        - funlen
    55        - goconst

View as plain text