Skip to content

Verify the .golangci.yaml config #2645

Closed
@bwagner5

Description

@bwagner5

Your feature request related to a problem? Please describe.

Crafting the .golangci.yaml can be a little challenging as the config grows or just getting right the first time. For example, I was crafting a config and had my indention off for the linters-settings: and rather than error'ing, the linter-settings were just not applied.

Describe the solution you'd like.

I propose a verify command is added to the golangci-lint CLI tool that will verify the config schema.

Describe alternatives you've considered.

Alternatively, golangci-lint run could throw an error when the config does not conform to the top-level schema.

Additional context.

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions