Skip to content

Add prefix-current-module to goimports #931

Closed
@sagikazarmark

Description

@sagikazarmark

I'd like to add a bool option prefix-current-module to the goimports config.

It would basically check if the linted package is a module, and slap the module path (based on go.mod if exists) to the list of local prefixes. It would make the configuration more portable.

WDYT?

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