zephinzer/dev

View on GitHub
pkg/repository/repository.go

Summary

Maintainability
A
1 hr
Test Coverage
D
60%

Method Repository.GetPath has 7 return statements (exceeds 4 allowed).
Open

func (r Repository) GetPath(rootPath ...string) (string, error) {
    // if :rootPath is defined, use that as the root instead of the current directory
    storagePath := "."
    if len(rootPath) > 0 {
        storagePath = rootPath[0]
Severity: Major
Found in pkg/repository/repository.go - About 45 mins to fix

    Method Repository.GetWebsiteURL has 6 return statements (exceeds 4 allowed).
    Open

    func (r Repository) GetWebsiteURL() (string, error) {
        switch true {
        case validator.IsGitHTTPUrl(r.URL):
            link, err := str.GetHttpLinkFromHttpCloneUrl(r.URL)
            if err != nil {
    Severity: Major
    Found in pkg/repository/repository.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status