mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-11-13 09:53:53 +00:00
129 lines
2.6 KiB
JSON
129 lines
2.6 KiB
JSON
{
|
|
"formatters": {
|
|
"enable": [
|
|
"gofmt",
|
|
"goimports"
|
|
],
|
|
"exclusions": {
|
|
"generated": "lax",
|
|
"paths": [
|
|
"third_party$",
|
|
"builtin$",
|
|
"examples$"
|
|
]
|
|
},
|
|
"settings": {
|
|
"gofmt": {
|
|
"simplify": true
|
|
},
|
|
"goimports": {
|
|
"local-prefixes": [
|
|
"github.com/bitechdev/ResolveSpec"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"issues": {
|
|
"max-issues-per-linter": 0,
|
|
"max-same-issues": 0
|
|
},
|
|
"linters": {
|
|
"enable": [
|
|
"gocritic",
|
|
"misspell",
|
|
"revive"
|
|
],
|
|
"exclusions": {
|
|
"generated": "lax",
|
|
"paths": [
|
|
"third_party$",
|
|
"builtin$",
|
|
"examples$",
|
|
"mocks?",
|
|
"tests?"
|
|
],
|
|
"rules": [
|
|
{
|
|
"linters": [
|
|
"dupl",
|
|
"errcheck",
|
|
"gocritic",
|
|
"gosec"
|
|
],
|
|
"path": "_test\\.go"
|
|
},
|
|
{
|
|
"linters": [
|
|
"errcheck"
|
|
],
|
|
"text": "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*print(f|ln)?|os\\.(Un)?Setenv). is not checked"
|
|
},
|
|
{
|
|
"path": "_test\\.go",
|
|
"text": "cognitive complexity|cyclomatic complexity"
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"errcheck": {
|
|
"check-blank": false,
|
|
"check-type-assertions": false
|
|
},
|
|
"gocritic": {
|
|
"enabled-checks": [
|
|
"appendAssign",
|
|
"assignOp",
|
|
"boolExprSimplify",
|
|
"builtinShadow",
|
|
"captLocal",
|
|
"caseOrder",
|
|
"defaultCaseOrder",
|
|
"dupArg",
|
|
"dupBranchBody",
|
|
"dupCase",
|
|
"dupSubExpr",
|
|
"elseif",
|
|
"emptyFallthrough",
|
|
"equalFold",
|
|
"flagName",
|
|
"ifElseChain",
|
|
"indexAlloc",
|
|
"initClause",
|
|
"methodExprCall",
|
|
"nilValReturn",
|
|
"rangeExprCopy",
|
|
"rangeValCopy",
|
|
"regexpMust",
|
|
"singleCaseSwitch",
|
|
"sloppyLen",
|
|
"stringXbytes",
|
|
"switchTrue",
|
|
"typeAssertChain",
|
|
"typeSwitchVar",
|
|
"underef",
|
|
"unlabelStmt",
|
|
"unnamedResult",
|
|
"unnecessaryBlock",
|
|
"weakCond",
|
|
"yodaStyleExpr"
|
|
]
|
|
},
|
|
"revive": {
|
|
"rules": [
|
|
{
|
|
"disabled": true,
|
|
"name": "exported"
|
|
},
|
|
{
|
|
"disabled": true,
|
|
"name": "package-comments"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"run": {
|
|
"tests": true
|
|
},
|
|
"version": "2"
|
|
} |