jamesrwhite/minicron

View on GitHub
client/run/run.go

Summary

Maintainability
A
3 hrs
Test Coverage

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

func Command(command string, output chan string) (int, error) {
    // Get the hostnasme of the server we're running on
    hostname, err := os.Hostname()

    if err != nil {
Severity: Major
Found in client/run/run.go - About 2 hrs to fix

    Function Command has 10 return statements (exceeds 4 allowed).
    Open

    func Command(command string, output chan string) (int, error) {
        // Get the hostnasme of the server we're running on
        hostname, err := os.Hostname()
    
        if err != nil {
    Severity: Major
    Found in client/run/run.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status