Files
job-search/.golangci.json
T
bwilliams e19c8c2b69 Imports split into three groups: standard library, third-party, then this project's own packages
gci is configured with the sections standard, default and localmodule, and
goimports with the module path as its local prefix, so both formatters
agree.
2026-10-14 17:40:06 +01:00

77 lines
1.2 KiB
JSON

{
"version": "2",
"run": {
"timeout": "5m",
"tests": true
},
"linters": {
"enable": [
"cyclop",
"dogsled",
"errcheck",
"godox",
"govet",
"gosec",
"ineffassign",
"nilerr",
"nilnil",
"nolintlint",
"unused",
"whitespace"
],
"settings": {
"cyclop": {
"max-complexity": 15
}
},
"exclusions": {
"rules": [
{
"path": "_test\\.go",
"linters": [
"errcheck",
"cyclop"
]
},
{
"path": "_test\\.go",
"linters": [
"gosec"
],
"text": "G104"
}
]
}
},
"formatters": {
"enable": [
"gci",
"gofmt",
"goimports",
"golines"
],
"settings": {
"gci": {
"sections": [
"standard",
"default",
"localmodule"
]
},
"goimports": {
"local-prefixes": [
"git.avsdev.uk/Go/job-search"
]
},
"golines": {
"max-len": 100,
"tab-len": 2
}
}
},
"issues": {
"max-same-issues": 0,
"max-issues-per-linter": 0
}
}