Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more linters to golangci.yaml #2173

Closed
kale-amruta opened this issue Jul 13, 2023 · 1 comment · Fixed by #2239, #2238, #2505, #2500 or #2240
Closed

Add more linters to golangci.yaml #2173

kale-amruta opened this issue Jul 13, 2023 · 1 comment · Fixed by #2239, #2238, #2505, #2500 or #2240
Assignees
Projects

Comments

@kale-amruta
Copy link
Contributor

kale-amruta commented Jul 13, 2023

Is your feature request related to a problem? Please describe.
Currently .golangci.yaml has only following linters enabled:
- gofmt
- whitespace
- gocognit
- unparam

We should consider adding few more linters that would have enable developers to have better coding standards as well as speed up development and code reviews

Describe the solution you'd like
Following linters could be enabled in the golangci

@infraq infraq added this to To Be Triaged in Kanister Jul 13, 2023
@kale-amruta kale-amruta changed the title Enhance golangci.yaml to add more go-lint checks Add more linters to golangci.yaml Jul 13, 2023
@ankitjain235
Copy link
Contributor

ankitjain235 commented Aug 7, 2023

  1. lll, nakedret, asciicheck, depguard, dogsled, dupl, exportloopref: Enable lll, nakedret, asciicheck, depguard, dogsled, dupl, exportloopref golang linters #2238
    NOTE: depguard was enabled in this PR but had to be disabled temporarily until v1.53.x invisibly breaks configs that were valid in v1.52.x if they used depguard golangci/golangci-lint#3906 is fixed and a new release is available with the fix.

  2. importas: Enable importas golang linter #2239

  3. misspell, nestif: Enable misspell, nestif golang linter #2240

  4. gci, goprintffuncname, nolintlint: Enable gci, goprintffuncname, nolintlint linters #2500

  5. stylecheck: Enable stylecheck linter #2505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment