gci is configured with the sections standard, default and localmodule, and goimports with the module path as its local prefix, so both formatters agree.
77 lines
1.2 KiB
JSON
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
|
|
}
|
|
}
|