Rename module path github.com/ryanhamamura/c4 to github.com/ryanhamamura/games across go.mod, all source files, and golangci config.
46 lines
926 B
YAML
46 lines
926 B
YAML
version: "2"
|
|
|
|
linters:
|
|
default: standard
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- staticcheck
|
|
- gosec
|
|
- bodyclose
|
|
- sqlclosecheck
|
|
- misspell
|
|
- errname
|
|
- copyloopvar
|
|
|
|
settings:
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
- "-ST1001" # dot imports
|
|
- "-ST1003" # naming conventions
|
|
gosec:
|
|
excludes:
|
|
- G104 # unhandled errors — redundant with errcheck
|
|
- G107 # HTTP requests with variable URLs — expected in a web app
|
|
- G115 # integer overflow conversion
|
|
- G301 # directory permissions 0750 — 0755 is standard for data dirs
|
|
- G404 # weak random — acceptable for game IDs and player IDs
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/ryanhamamura/games
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- errcheck
|