Preparing report...

Report for github.com/williamleven/BooGroCha

A+    Excellent!    Found 22 issues across 34 files

Tweet

gofmt97%

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!


gocyclo97%

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.


golint38%

Golint is a linter for Go source code.

    • BooGroCha/internal/booking/bookingservice_mock.go
    • Line 8: warning: exported type MockErrorService should have comment or be unexported (golint)
    • Line 10: warning: exported method MockErrorService.Book should have comment or be unexported (golint)
    • Line 14: warning: exported method MockErrorService.UnBook should have comment or be unexported (golint)
    • Line 18: warning: exported method MockErrorService.MyBookings should have comment or be unexported (golint)
    • Line 22: warning: exported method MockErrorService.Available should have comment or be unexported (golint)
    • Line 26: warning: exported type MockStaticService should have comment or be unexported (golint)
    • Line 31: warning: exported function NewMockStaticService should have comment or be unexported (golint)
    • Line 35: warning: exported method MockStaticService.Book should have comment or be unexported (golint)
    • Line 39: warning: exported method MockStaticService.UnBook should have comment or be unexported (golint)
    • Line 43: warning: exported method MockStaticService.MyBookings should have comment or be unexported (golint)
    • Line 47: warning: exported method MockStaticService.Available should have comment or be unexported (golint)
    • Line 51: warning: exported type MockService should have comment or be unexported (golint)
    • Line 56: warning: exported function NewMockService should have comment or be unexported (golint)
    • Line 60: warning: exported method MockService.Book should have comment or be unexported (golint)
    • Line 69: warning: exported method MockService.UnBook should have comment or be unexported (golint)
    • Line 78: warning: exported method MockService.MyBookings should have comment or be unexported (golint)
    • Line 86: warning: exported method MockService.Available should have comment or be unexported (golint)
    • BooGroCha/internal/ranking/ranking.go
    • Line 9: warning: comment on exported type Rankings should be of the form "Rankings ..." (with optional leading article) (golint)
    • Line 14: warning: exported method Rankings.Sort should have comment or be unexported (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 25: warning: exported method Rankings.Update should have comment or be unexported (golint)
    • Line 42: warning: exported method Rankings.Normalize should have comment or be unexported (golint)
    • BooGroCha/internal/ranking/file/rankingService.go
    • Line 36: warning: exported function NewRankingService should have comment or be unexported (golint)
    • Line 64: warning: exported type RankingService should have comment or be unexported (golint)
    • Line 68: warning: exported method RankingService.GetRankings should have comment or be unexported (golint)
    • Line 83: warning: exported method RankingService.SaveRankings should have comment or be unexported (golint)
    • BooGroCha/internal/log/fmt/logger.go
    • Line 5: warning: exported type Logger should have comment or be unexported (golint)
    • Line 17: warning: exported method Logger.Errorv should have comment or be unexported (golint)
    • Line 21: warning: exported method Logger.Errorf should have comment or be unexported (golint)
    • Line 25: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 29: warning: exported method Logger.Warnv should have comment or be unexported (golint)
    • Line 33: warning: exported method Logger.Warnf should have comment or be unexported (golint)
    • Line 37: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 41: warning: exported method Logger.Infov should have comment or be unexported (golint)
    • Line 45: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • BooGroCha/internal/cli/commands.go
    • Line 12: warning: exported const ApplicationName should have comment or be unexported (golint)
    • Line 13: warning: exported const Version should have comment or be unexported (golint)
    • Line 38: warning: exported var BgcCmd should have comment or be unexported (golint)
    • BooGroCha/internal/cli/commands/book.go
    • Line 18: warning: exported const CampusFlagName should have comment or be unexported (golint)
    • Line 19: warning: exported const CampusFlagDefaultValue should have comment or be unexported (golint)
    • Line 21: warning: exported const SizeFlagName should have comment or be unexported (golint)
    • Line 22: warning: exported const SizeFlagDefaultValue should have comment or be unexported (golint)
    • Line 24: warning: exported const RoomFlagName should have comment or be unexported (golint)
    • Line 25: warning: exported const RoomFlagDefaultValue should have comment or be unexported (golint)
    • Line 27: warning: exported const MessageFlagName should have comment or be unexported (golint)
    • Line 28: warning: exported const MessageFlagDefaultValue should have comment or be unexported (golint)
    • Line 30: warning: exported function BookCmd should have comment or be unexported (golint)
    • Line 243: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 357: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • BooGroCha/internal/booking/directory/bookingservice.go
    • Line 17: warning: exported type BookingService should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBookingService should have comment or be unexported (golint)
    • Line 45: warning: exported method BookingService.Book should have comment or be unexported (golint)
    • Line 60: warning: exported method BookingService.UnBook should have comment or be unexported (golint)
    • Line 73: warning: exported method BookingService.MyBookings should have comment or be unexported (golint)
    • Line 132: warning: exported method BookingService.Available should have comment or be unexported (golint)
    • BooGroCha/internal/booking/timeedit/bookingService.go
    • Line 29: warning: exported const BaseProvider should have comment or be unexported (golint)
    • Line 31: warning: exported type BookingService should have comment or be unexported (golint)
    • Line 37: warning: exported method BookingService.Book should have comment or be unexported (golint)
    • Line 69: warning: exported method BookingService.UnBook should have comment or be unexported (golint)
    • Line 91: warning: exported method BookingService.MyBookings should have comment or be unexported (golint)
    • Line 159: warning: exported method BookingService.Available should have comment or be unexported (golint)
    • Line 183: warning: exported method BookingService.Provider should have comment or be unexported (golint)
    • Line 187: warning: exported function NewBookingService 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!