vorteil/vorteil

View on GitHub
pkg/cli/main.go

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

Function getReaderURL has 7 return statements (exceeds 4 allowed).
Open

func getReaderURL(src string) (vpkg.Reader, error) {

    newVrepo, err := checkIfNewVRepo(src)
    if err != nil {
        return nil, err
Severity: Major
Found in pkg/cli/main.go - About 45 mins to fix

    Function getSourceType has 6 return statements (exceeds 4 allowed).
    Open

    func getSourceType(src string) (sourceType, error) {
        var err error
        var fi os.FileInfo
    
        // Check if Source is a URL
    Severity: Major
    Found in pkg/cli/main.go - About 40 mins to fix

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

      func checkIfNewVRepo(src string) (string, error) {
          urlo, err := url.Parse(src)
          if err != nil {
              return "", err
          }
      Severity: Major
      Found in pkg/cli/main.go - About 35 mins to fix

        TODO found
        Open

            // TODO: check for vrepo strings
        Severity: Minor
        Found in pkg/cli/main.go by fixme

        There are no issues that match your filters.

        Category
        Status