horizoncd/horizon

View on GitHub
core/config/config.go

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function LoadConfig has 54 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func LoadConfig(configFilePath string) (*Config, error) {
var config Config
data, err := ioutil.ReadFile(configFilePath)
if err != nil {
return nil, err
Severity: Minor
Found in core/config/config.go - About 1 hr to fix
    Category
    Status