Skip to content

Migrate to golangci-lint v2 #1645

Open
Open
@ccoVeille

Description

@ccoVeille

The v2 comes with a new format.

There is a CLI command to migrate the configuration file, but all comments are lost.

I like how the current .golangci.yml file is annotated for now.

I think they should be kept. So it would require to copy paste comments from previous config version.

The main issue I can think about with this migration is the fact some rules have changed, there might be a lot of things to fix

Please note that some commentsz especially the ones about revive rules come from my own golangci-lint configuration examples repository.

https://github.com/ccoVeille/golangci-lint-config-examples

I recently migrated all my examples to v2 format.

So here, migrating config could be easier by migrating config via the CLI, then copy paste the configuration with comments from my own project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions