Skip to content

Global configured lang version #2158

Closed
@SVilgelm

Description

@SVilgelm

your feature request related to a problem? Please describe.

Some of the linters have the configuration option to configure the lang's version, like gofumpt, staticcheck, unused, etc...

So it would be great to configure the version in one place and use it as default value or

Describe the solution you'd like.

probably the run section should be extended to have the go parameter to store the default lang version
then all the linters that have this parameter can use it as default

or the lang version can be read from go.mod directly

Describe alternatives you've considered.

https://www.google.com/search?client=safari&rls=en&q=yaml+anchors&ie=UTF-8&oe=UTF-8
but it looks like a dirty hack

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions