Skip to content

fix lint issues #59

@medyagh

Description

@medyagh
Running [/home/runner/golangci-lint-1.57.2-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  Error: emptyStringTest: replace `len(rootOpts.org) > 0` with `rootOpts.org != ""` (gocritic)
  Error: File is not `gofumpt`-ed (gofumpt)
  Error: File is not `gofumpt`-ed (gofumpt)
  Error: File is not `gofumpt`-ed (gofumpt)
  Error: unnecessary leading newline (whitespace)
  Error: import 'github.com/google/go-github/v33/github' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/triage-party/pkg/persist' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/go-github/v33/github' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/triage-party/pkg/persist' is not allowed from list 'Main' (depguard)
  Error: import 'k8s.io/klog/v2' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/go-github/v33/github' is not allowed from list 'Main' (depguard)
  Error: import 'k8s.io/klog/v2' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/client' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/ghcache' is not allowed from list 'Main' (depguard)
  Error: import 'k8s.io/klog/v2' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/client' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/ghcache' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/client' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/ghcache' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/blevesearch/segment' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/spf13/viper' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/repo' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/repo' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/repo' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/gocarina/gocsv' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/leaderboard' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/summary' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/server/job' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/server/job' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/server/site' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/karrick/tparse' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/print' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/summary' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/spf13/cobra' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/print' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/summary' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/spf13/cobra' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/karrick/tparse' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/spf13/cobra' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/leaderboard' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/print' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/karrick/tparse' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/pkg/errors' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/spf13/viper' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/server' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/pkg/server/job' is not allowed from list 'Main' (depguard)
  Error: import 'github.com/google/pullsheet/cmd' is not allowed from list 'Main' (depguard)
  Error: ineffectual assignment to err (ineffassign)
  Error: SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.  (staticcheck)
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions