Skip to content

Linting for import groups #510

@m1kola

Description

@m1kola

We already have some linting for imports here, but would be nice to have linting for import groups.

I'm thinking the the following grouping:

  • Standard library
  • 3rd-party packages excluding github.com/operator-framework/*
  • 3rd-party package from github.com/operator-framework/*
  • Local imports from github.com/operator-framework/operator-controller/*

I find this grouping helpful becuase it is very quick to distinguish OF dependencies from other 3rd party dependenices.

I think https://golangci-lint.run/usage/linters/#gci might be able to help with that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions