Skip to content

Add autofix for gci #2604

@barweiss

Description

@barweiss

Your feature request related to a problem? Please describe.

We were using the GCI linter to enforce import order. However, with the 1.44.2 update, it seems like auto-fix support was dropped.
This change makes it harder to enforce import order as the developer has to manually fix the code.

Describe the solution you'd like.

It seems like GCI supports write mode. Using it for auto fix could be possible.

Describe alternatives you've considered.

Removing the GCI linter as it is currently unusable, or downgrading golangci-lint.

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