soumya92/barista

View on GitHub
logging/logging.go

Summary

Maintainability
A
35 mins
Test Coverage
A
96%

Function shorten has 5 return statements (exceeds 4 allowed).
Open

func shorten(path string) string {
    // If path is a function, it can be something like some/package.(*Type).fn,
    // but we'll simplify it to some/package.Type.fn for logging.
    path = strings.Replace(path, "*", "", -1)
    path = strings.Replace(path, "(", "", -1)
Severity: Major
Found in logging/logging.go - About 35 mins to fix

    Your code does not pass gofmt in 2 places. Go fmt your code!
    Open

    // Copyright 2018 Google Inc.
    Severity: Minor
    Found in logging/logging.go by gofmt

    There are no issues that match your filters.

    Category
    Status