Skip to content

Commit

Permalink
chore(golangci-lint): enable gci
Browse files Browse the repository at this point in the history
See #331.
  • Loading branch information
bfabio committed Mar 1, 2023
1 parent 6ae4769 commit a76b87f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ linters:
# - forbidigo
# - forcetypeassert
# - funlen
# - gci
- gci
- ginkgolinter
- gocheckcompilerdirectives
# - gochecknoglobals
Expand Down
3 changes: 1 addition & 2 deletions cmd/download_publishers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"os"

"github.com/italia/publiccode-crawler/v3/common"
ymlurl "github.com/italia/publiccode-crawler/v3/internal"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"

ymlurl "github.com/italia/publiccode-crawler/v3/internal"
)

func init() {
Expand Down
3 changes: 1 addition & 2 deletions common/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"fmt"
"io/ioutil"

"gopkg.in/yaml.v2"

url "github.com/italia/publiccode-crawler/v3/internal"
"gopkg.in/yaml.v2"
)

var fileReaderInject = ioutil.ReadFile
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"

"github.com/italia/publiccode-crawler/v3/cmd"

log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
6 changes: 2 additions & 4 deletions scanner/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ import (
"strings"
"time"

"golang.org/x/oauth2"

"github.com/google/go-github/v43/github"
log "github.com/sirupsen/logrus"

"github.com/italia/publiccode-crawler/v3/common"
log "github.com/sirupsen/logrus"
"golang.org/x/oauth2"
)

type GitHubScanner struct {
Expand Down
3 changes: 1 addition & 2 deletions scanner/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import (
"path"
"strings"

"github.com/xanzy/go-gitlab"

"github.com/italia/publiccode-crawler/v3/common"
"github.com/xanzy/go-gitlab"
)

type GitLabScanner struct{}
Expand Down

0 comments on commit a76b87f

Please sign in to comment.