zephinzer/dev

View on GitHub
internal/config/utils.go

Summary

Maintainability
A
1 hr
Test Coverage
C
73%

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

func NewFromFile(filePath string) (*Config, error) {
    var configuration Config

    absoluteFilePath, resolvePathError := utils.ResolvePath(filePath)
    if resolvePathError != nil {
Severity: Major
Found in internal/config/utils.go - About 35 mins to fix

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

    func GetFiles(opt ...GetFilesOptions) ([]string, error) {
        configurationFiles := []string{}
    
        // local configurations
        contextualConfigPath, getWdError := os.Getwd()
    Severity: Major
    Found in internal/config/utils.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status