1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
#
# golangci-lint v2, pinned in tools/go.mod and run with `make lint`.
version: "2"
linters:
default: standard # errcheck, govet, ineffassign, staticcheck, unused
enable:
- errorlint # errors compared with errors.Is / errors.As
- gocyclo # functions a person can still follow
- misspell
- revive # doc comments and naming of exported identifiers
- unconvert
- unparam
settings:
gocyclo:
min-complexity: 15
misspell:
# No locale: British and American spellings are both accepted (the ACP
# SDK itself says "Cancelled"); only real misspellings are reported.
ignore-rules:
# French words of the French error messages (internal/config/problems.go)
- assistante
- exemple
- programme
- marrage
exclusions:
paths:
- spikes # throwaway prototypes, separate modules
formatters:
enable:
- gofmt
|