62 lines
1.1 KiB
YAML
62 lines
1.1 KiB
YAML
version: "2"
|
|
|
|
linters:
|
|
default: standard
|
|
enable:
|
|
- bodyclose
|
|
- contextcheck
|
|
- copyloopvar
|
|
- errorlint
|
|
- gocritic
|
|
- gosec
|
|
- misspell
|
|
- perfsprint
|
|
- revive
|
|
- unconvert
|
|
- unparam
|
|
- usestdlibvars
|
|
settings:
|
|
gosec:
|
|
excludes:
|
|
- G104
|
|
- G204
|
|
- G301
|
|
- G302
|
|
- G304
|
|
- G306
|
|
- G122
|
|
- G124
|
|
- G703
|
|
- G706
|
|
revive:
|
|
rules:
|
|
- name: exported
|
|
disabled: true
|
|
- name: package-comments
|
|
disabled: true
|
|
errcheck:
|
|
exclude-functions:
|
|
- (*os.File).Close
|
|
- (io.Closer).Close
|
|
- (*database/sql.Rows).Close
|
|
- (*database/sql.Tx).Rollback
|
|
- (*lodge/internal/server.Store).Close
|
|
- (*github.com/fsnotify/fsnotify.Watcher).Close
|
|
- os.Unsetenv
|
|
- os.Remove
|
|
- os.RemoveAll
|
|
- fmt.Fprint
|
|
- fmt.Fprintf
|
|
- fmt.Fprintln
|
|
|
|
formatters:
|
|
enable:
|
|
- gofumpt
|
|
- goimports
|
|
settings:
|
|
gofumpt:
|
|
module-path: lodge
|
|
goimports:
|
|
local-prefixes:
|
|
- lodge
|