Skip to content
Discussion options

You must be logged in to vote

This file is not a configuration example, but a documentation.

https://github.com/golangci/golangci-lint/blob/fb3e4b2fb1ea3262448b01753a7125b83933eea2/.golangci.reference.yml#L1C1-L5C77

The reference should not be used as a basis for configuration.

The goal is not to define default values, but to expose all possible options.

In most cases, you don't need to configure a linter.
The settings are only here if you want to change the default values.

We don't want to provide a configuration example because there is no real default configuration: the enable linters and their settings must be specific to each project.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@ldez
Comment options

ldez Nov 6, 2025
Maintainer

@rostislaved
Comment options

@ldez
Comment options

ldez Nov 6, 2025
Maintainer

@alexandear
Comment options

@rostislaved
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
3 participants