Skip to content

Commit

Permalink
lint (gci)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jan 3, 2024
1 parent a71a284 commit ff6cf23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml

linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/crowdsecurity)
- prefix(github.com/crowdsecurity/crowdsec)
- prefix(github.com/crowdsecurity/cs-blocklist-mirror)

gocyclo:
min-complexity: 30

Expand Down
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import (
log "github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"

"github.com/crowdsecurity/crowdsec/pkg/apiclient"
csbouncer "github.com/crowdsecurity/go-cs-bouncer"
"github.com/crowdsecurity/go-cs-lib/csdaemon"
"github.com/crowdsecurity/go-cs-lib/ptr"
"github.com/crowdsecurity/go-cs-lib/version"

"github.com/crowdsecurity/crowdsec/pkg/apiclient"

"github.com/crowdsecurity/cs-blocklist-mirror/pkg/cfg"
"github.com/crowdsecurity/cs-blocklist-mirror/pkg/registry"
"github.com/crowdsecurity/cs-blocklist-mirror/pkg/server"
Expand Down

0 comments on commit ff6cf23

Please sign in to comment.