.golangci.yml
This file
Path
.golangci.yml
75 lines · 1.3 KiB · YAML
Last changed by
ci(sec): improve type safety and server organization in HTTP middleware (#4437)Bo-Yi Wubefore adoption93ff771
History of this fileTake it
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576version: "2"linters: enable: - asciicheck - copyloopvar - dogsled - durationcheck - errorlint - gosec - misspell - nakedret - nilerr - nolintlint - perfsprint - revive - testifylint - usestdlibvars - wastedassign settings: gosec: excludes: - G115 perfsprint: int-conversion: true err-error: true errorf: true sprintf1: true strconcat: true testifylint: enable-all: true exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: - linters: - structcheck - unused text: '`data` is unused' - linters: - staticcheck text: 'SA1019:' - linters: - revive text: 'var-naming:' - linters: - revive text: 'exported:' - linters: - gosec path: _test\.go - linters: - revive path: _test\.go paths: - third_party$ - builtin$ - examples$formatters: enable: - gofmt - gofumpt - goimports settings: gofmt: rewrite-rules: - pattern: 'interface{}' replacement: 'any' exclusions: generated: lax paths: - gin.go