xmidt-org/fenrir

View on GitHub
main.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function fenrir has 85 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func fenrir(arguments []string) int {
    start := time.Now()

    var (
        f, v                                = pflag.NewFlagSet(applicationName, pflag.ContinueOnError), viper.New()
Severity: Major
Found in main.go - About 2 hrs to fix

    Function fenrir has 7 return statements (exceeds 4 allowed).
    Open

    func fenrir(arguments []string) int {
        start := time.Now()
    
        var (
            f, v                                = pflag.NewFlagSet(applicationName, pflag.ContinueOnError), viper.New()
    Severity: Major
    Found in main.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status