xmidt-org/petasos

View on GitHub

Showing 2 of 2 total issues

Function petasos has 80 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func petasos(arguments []string) int {
    //
    // Initialize the server environment: command-line flags, Viper, logging, and the WebPA instance
    //

Severity: Major
Found in main.go - About 2 hrs to fix

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

    func petasos(arguments []string) int {
        //
        // Initialize the server environment: command-line flags, Viper, logging, and the WebPA instance
        //
    
    
    Severity: Major
    Found in main.go - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language