Files
games/.golangci.yml
Ryan Hamamura c6885a069b
All checks were successful
CI / Deploy / test (pull_request) Successful in 14s
CI / Deploy / lint (pull_request) Successful in 25s
CI / Deploy / deploy (pull_request) Has been skipped
refactor: rename Go module from c4 to games
Rename module path github.com/ryanhamamura/c4 to
github.com/ryanhamamura/games across go.mod, all source files,
and golangci config.
2026-03-02 20:41:20 -10:00

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