diff --git a/.golangci.yml b/.golangci.yml index e40734c..94991d9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,21 +19,34 @@ linters-settings: goheader: template-path: .go-header.txt + gocritic: + disable-all: true + enabled-checks: + - commentedOutCode + - commentFormatting + linters: enable: - asciicheck + - canonicalheader - dogsled + - dupl - errorlint + - gci - goconst + - gocritic + - gofmt + - goheader + - gosec - gosimple - govet - - goheader - ineffassign - misspell - nakedret - nolintlint - staticcheck - unconvert + - unparam - unused - whitespace disable-all: true diff --git a/zentao/programs.go b/zentao/programs.go index 8c392ac..b7b2815 100644 --- a/zentao/programs.go +++ b/zentao/programs.go @@ -35,7 +35,7 @@ type ProgramsMeta struct { End string `json:"end,omitempty"` Pm any `json:"PM,omitempty"` // 请求是字符串, 返回是UserMeta Budget string `json:"budget,omitempty"` // 预算 - Budgetunit string `json:"budgetUnit,omitempty"` //预算币种(CNY/USD) + Budgetunit string `json:"budgetUnit,omitempty"` // 预算币种(CNY/USD) ACL ACL `json:"acl,omitempty"` Whitelist any `json:"whitelist,omitempty"` // 白名单, 请求和返回([]UserMeta)不一样, 请注意 }