jkawamoto/roadie

View on GitHub
command/init.go

Summary

Maintainability
A
1 hr
Test Coverage

Function cmdInit has 53 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func cmdInit(m *Metadata) (err error) {

    if m.Config == nil {
        m.Config = new(config.Config)
    }
Severity: Minor
Found in command/init.go - About 1 hr to fix

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

    func cmdInit(m *Metadata) (err error) {
    
        if m.Config == nil {
            m.Config = new(config.Config)
        }
    Severity: Major
    Found in command/init.go - About 45 mins to fix

      error strings should not be capitalized or end with punctuation or a newline
      Open

              return fmt.Errorf("Input value is empty.")
      Severity: Minor
      Found in command/init.go by golint

      There are no issues that match your filters.

      Category
      Status