Skip to content

[Umbrella] format the code in karmada-dashboard repo to meet golangci-lint #6078

Open
@chaosi-zju

Description

@chaosi-zju

What would you like to be added:

format the code in karmada-dashboard repo to meet golangci-lint

Why is this needed:

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

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions