Preparing report...

Report for github.com/admiralobvious/brevis

A+    Excellent!    Found 6 issues across 12 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint50%

Golint is a linter for Go source code.

    • brevis/internal/db/mongodb.go
    • Line 24: warning: exported type MongoDatabase should have comment or be unexported (golint)
    • Line 32: warning: exported function NewMongoDatabase should have comment or be unexported (golint)
    • Line 41: warning: exported method MongoDatabase.Init should have comment or be unexported (golint)
    • Line 70: warning: exported method MongoDatabase.Get should have comment or be unexported (golint)
    • Line 84: warning: exported method MongoDatabase.GetStats should have comment or be unexported (golint)
    • Line 118: warning: exported method MongoDatabase.Set should have comment or be unexported (golint)
    • Line 140: warning: exported method MongoDatabase.Update should have comment or be unexported (golint)
    • brevis/internal/model/url.go
    • Line 12: warning: exported type UrlMapping should have comment or be unexported (golint)
    • Line 24: warning: exported function NewUrlMapping should have comment or be unexported (golint)
    • Line 35: warning: exported type Referer should have comment or be unexported (golint)
    • Line 45: warning: exported type Meta should have comment or be unexported (golint)
    • brevis/internal/handlers/shortener.go
    • Line 14: warning: exported method Handler.Shorten should have comment or be unexported (golint)
    • Line 49: warning: exported method Handler.Unshorten should have comment or be unexported (golint)
    • Line 75: warning: exported method Handler.Redirect should have comment or be unexported (golint)
    • Line 100: warning: exported method Handler.Stats should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!