l0nax/changelog-go

View on GitHub
cmd/root.go

Summary

Maintainability
A
50 mins
Test Coverage

Function findTopDir has 8 return statements (exceeds 4 allowed).
Open

func findTopDir(cwd string) (string, error) {
    var err error
    var fs os.FileInfo
    var c bool
    var prevPath string // prevPath contains the previous path to prevent an infinite loop
Severity: Major
Found in cmd/root.go - About 50 mins to fix

    package comment should be of the form "Package cmd ..."
    Open

    /*
    Severity: Minor
    Found in cmd/root.go by golint

    exported function Execute should have comment or be unexported
    Open

    func Execute() {
    Severity: Minor
    Found in cmd/root.go by golint

    There are no issues that match your filters.

    Category
    Status