kanisterio/kanister

Enable linters for test packages

Open

#2,962 opened on Jun 26, 2024

View on GitHub
 (10 comments) (1 reaction) (1 assignee)Go (178 forks)auto 404
acceptedgood first issue

Repository metrics

Stars
 (883 stars)
PR merge metrics
 (PR metrics pending)

Description

Is your feature request related to a problem? Please describe. As of now linters are disabled from test packages in .golangci.yaml file:

issues:
  exclude-rules:
    - path: '_test.go'
      linters:
        - errcheck                      # Errors may be ignored in tests.
        - unparam                       # Tests might have unused function parameters.
        - lll
        - dupl
        - misspell
        - nestif
        - gci

Describe the solution you'd like After enabling this linter, fix all kind of linter issues coming up in test packages.

Contributor guide