Skip to content

Conversation

@rajithacharith
Copy link

Purpose

Add golang linters

Goals

Maintain golang linters in a single repository.

- EXC0013
- EXC0014
exclude-dirs:
- clients/kubernetes/types # Exclude the kubernetes client types copied from external sources
Copy link
Contributor

@senthalan senthalan May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will these exclude-dirs specific for a project ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we can't have this as the common rule?

Does go linters allows to merge two rules files? So we can have one with the common rules here and each project can maintain project specific ones in each repos ?

# List of functions to exclude from checking, where each entry is a single function to exclude.
# See https://github.com/kisielk/errcheck#excluding-functions for details.
exclude-functions:
- (*go.uber.org/zap.Logger).Sync
Copy link
Contributor

@senthalan senthalan May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will these exclude-functions specific for a project ?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants