Preparing report...

Report for github.com/gogitdb/gitdb

A+    Excellent!    Found 10 issues across 52 files

Tweet

gofmt96%

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


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!


golint86%

Golint is a linter for Go source code.

    • gitdb/internal/errors/errors.go
    • Line 13: warning: comment on exported var ErrNoRecords should be of the form "ErrNoRecords ..." (golint)
    • Line 15: warning: exported var ErrRecordNotFound should have comment or be unexported (golint)
    • gitdb/example/booking/enums.go
    • Line 3: warning: exported type Status should have comment or be unexported (golint)
    • Line 6: warning: exported const Cancelled should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type PaymentMode should have comment or be unexported (golint)
    • Line 15: warning: exported const Daily should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type RoomType should have comment or be unexported (golint)
    • Line 23: warning: exported const Room should have comment (or a comment on this block) or be unexported (golint)
    • gitdb/example/booking/model.go
    • Line 9: warning: exported type BookingModel should have comment or be unexported (golint)
    • Line 28: warning: exported function NewBookingModel should have comment or be unexported (golint)
    • Line 32: warning: exported method BookingModel.NumberOfHours should have comment or be unexported (golint)
    • Line 36: warning: exported method BookingModel.NumberOfNights should have comment or be unexported (golint)
    • gitdb/errors.go
    • Line 6: warning: exported var ErrNoRecords should have comment or be unexported (golint)
    • gitdb/ui.go
    • Line 1: warning: package comment should be of the form "Package gitdb ..." (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!


misspell94%

Misspell Finds commonly misspelled English words