gitlabhq/gitlab-shell

View on GitHub
internal/config/config.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func newFromFile(path string) (*Config, error) {
    cfg := &Config{}
    *cfg = DefaultConfig
    cfg.RootDir = filepath.Dir(path)

Severity: Major
Found in internal/config/config.go - About 35 mins to fix

    FIXME found
    Open

        // FIXME: Let's not allow this to be set in config.yml
    Severity: Minor
    Found in internal/config/config.go by fixme

    There are no issues that match your filters.

    Category
    Status