nikoksr/proji

View on GitHub
cmd/packageImport.go

Summary

Maintainability
A
1 hr
Test Coverage

Function newPackageImportCommand has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func newPackageImportCommand() *packageImportCommand {
    var remoteRepos, directories, configs, packages, collections []string

    cmd := &cobra.Command{
        Use:     "import FROM [FROM...]",
Severity: Minor
Found in cmd/packageImport.go - About 1 hr to fix

    Function newPackageImportCommand has 5 return statements (exceeds 4 allowed).
    Open

    func newPackageImportCommand() *packageImportCommand {
        var remoteRepos, directories, configs, packages, collections []string
    
        cmd := &cobra.Command{
            Use:     "import FROM [FROM...]",
    Severity: Major
    Found in cmd/packageImport.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status