nikoksr/proji

View on GitHub
pkg/project/store/store.go

Summary

Maintainability
A
35 mins
Test Coverage

Method projectStore.StoreProject has 5 return statements (exceeds 4 allowed).
Open

func (ps *projectStore) StoreProject(project *domain.Project) error {
    err := ps.db.Where("path = ?", project.Path).First(project).Error
    if err == nil {
        return ErrProjectExists
    }
Severity: Major
Found in pkg/project/store/store.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status