zephinzer/dev

View on GitHub
internal/db/init.go

Summary

Maintainability
A
1 hr
Test Coverage

Function Init has 10 return statements (exceeds 4 allowed).
Open

func Init(atPath string) error {
    directory := filepath.Dir(atPath)
    filename := filepath.Base(atPath)
    fullPath := path.Join(directory, filename)
    fullPathInfo, checkFileError := os.Lstat(fullPath)
Severity: Major
Found in internal/db/init.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status