Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Add gci linter for import grouping
Browse files Browse the repository at this point in the history
golangci-lint will now group imports in the following order:
- standard library
- 3rd party packages outside of our Github org
- packages from our Github org
- local imports from rukpak

Signed-off-by: Tayler Geiger <[email protected]>
  • Loading branch information
trgeiger authored and everettraven committed Apr 10, 2024
1 parent c28caf5 commit f03f04c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ linters-settings:
alias: rukpakv1alpha1
goimports:
local-prefixes: github.com/operator-framework/rukpak

gci:
sections:
- standard
- default
- prefix(github.com/operator-framework)
- prefix(github.com/operator-framework/operator-controller)
custom-order: true

output:
format: tab
formats:
- format: tab

0 comments on commit f03f04c

Please sign in to comment.