Skip to content

Commit

Permalink
* [chore] configure and enhance gocritic linter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Dec 18, 2024
1 parent 4e0277e commit bddd38f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion zentao/programs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)不一样, 请注意
}
Expand Down

0 comments on commit bddd38f

Please sign in to comment.