Skip to content

golangci-lint: enable more linters #2274

@melekes

Description

@melekes

It would be great to eventually support all the https://golangci-lint.run/usage/linters/ linters (except deprecated). Can be done linter by linter. Feel free to comment on the issue if you've picked a specific linter to work on. Currently, we ignore the following linters in .golangci.yml (see disabled section):

  • containedctx
  • contextcheck
  • cyclop
  • dupword
  • errname
  • errorlint
  • exhaustive
  • exhaustruct
  • forbidigo
  • forcetypeassert
  • funlen
  • gocognit
  • gocyclo
  • godox
  • goerr113
  • gomnd
  • gomoddirectives
  • interfacebloat
  • ireturn
  • lll
  • maintidx
  • nestif
  • nilnil
  • nlreturn
  • nonamedreturns
  • perfsprint
  • predeclared
  • revive
  • tagliatelle
  • testifylint
  • typecheck
  • unparam
  • varnamelen
  • wrapcheck
  • wsl

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershygieneAny work relating to code legibility/hygiene to make it easier to read

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions