Skip to content

Reasoning behind enabled by default linters? #2561

Closed Answered by bombsimon
jalaziz asked this question in Q&A
Discussion options

You must be logged in to vote

The simple answer would be that it was decided by the author many years back and has not been changed much to reduce amount of unexpected behaviour or breaking changes. At this point golangci-lint has so many linters and configurations it's hard to do a one-config-fits-all because we have such different needs and I think it's resonable to assume users adopting the tool will also configure it for their needs.

Similar discussions around sensible default has existed for things like exclude-use-default which also shows that some defaults chosen for golangci-lint does not fit everyone.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jalaziz
Comment options

Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants