glaciers-in-archives/snowman

View on GitHub
internal/config/config.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func LoadConfig(fileLocation string) error {
    if _, err := os.Stat(fileLocation); err != nil {
        if fileLocation == "snowman.yaml" {
            return utils.ErrorExit("Unable to locate snowman.yaml in the current working directory.", err)
        } else {
Severity: Major
Found in internal/config/config.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status