b4nst/turbogit

View on GitHub

Showing 1 of 3 total issues

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

func runCommit(cco *commitOpt) (err error) {
    // Sanity checks
    if nc, err := tugit.StageReady(cco.Repo); !cco.Amend && !nc {
        if err == nil {
            err = fmt.Errorf("Nothing to commit.")
Severity: Minor
Found in cmd/commit.go - About 1 hr to fix
Severity
Category
Status
Source
Language