Open
Description
What would you like to be added:
format the code in karmada-dashboard repo to meet golangci-lint
Why is this needed:
- license check @chaosi-zju add static license check ci dashboard#176
- gofmt,goimports,gci @chaosi-zju format code about goimports and gci dashboard#178
- misspell,staticcheck,govet @chaosi-zju chore: format code about misspell,staticcheck,govet dashboard#181
- errcheck,gosimple,ineffassign,unused @chaosi-zju chore: format code about errcheck,gosimple,ineffassign,unused dashboard#188
- gocyclo,gosec @chaosi-zju chore: format code about gocyclo,gosec dashboard#189
- whitespace @warjiang chore: format code about whitespace dashboard#180
- revive
- @chaosi-zju format code about exported function should have comment dashboard#179
- @chaosi-zju chore: format code about exported function should have comment dashboard#183
- @chaosi-zju chore: format code about revive dashboard#191
- @chaosi-zju chore: format code about revive stuttering check dashboard#192
597 issues:
* errcheck: 6
* gci: 249
* gocyclo: 2
* gofmt: 4
* goimports: 14
* gosec: 4
* gosimple: 5
* govet: 1
* ineffassign: 5
* misspell: 2
* revive: 267
* staticcheck: 2
* unused: 8
* whitespace: 28
for revive lint (267):
* blank-imports 2
* empty-block 1
* exported 150
* indent-error-flow 2
* receiver-naming 27
* superfluous-else 1
* unused-parameter 8
* var-declaration 3
* var-naming 14
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status