pkg/repository/repository.go
Method Repository.GetPath
has 7 return statements (exceeds 4 allowed). Open
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]
Method Repository.GetWebsiteURL
has 6 return statements (exceeds 4 allowed). Open
Open
func (r Repository) GetWebsiteURL() (string, error) {
switch true {
case validator.IsGitHTTPUrl(r.URL):
link, err := str.GetHttpLinkFromHttpCloneUrl(r.URL)
if err != nil {