Preparing report...

Report for github.com/s-owl/skhuinfo-api

A    Great!    Found 8 issues across 9 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!


golint33%

Golint is a linter for Go source code.

    • skhuinfo-api/consts.go
    • Line 8: warning: comment on exported const TIMEOUT should be of the form "TIMEOUT ..." (golint)
    • Line 11: warning: comment on exported const SKHU_URL should be of the form "SKHU_URL ..." (golint)
    • Line 13: warning: comment on exported const MEAL_LIST should be of the form "MEAL_LIST ..." (golint)
    • Line 15: warning: comment on exported const MEAL_BOARD should be of the form "MEAL_BOARD ..." (golint)
    • skhuinfo-api/error.go
    • Line 9: warning: comment on exported type ErrorCode should be of the form "ErrorCode ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported type APIError should be of the form "APIError ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported method ErrorCode.CreateError should be of the form "CreateError ..." (golint)
    • Line 70: warning: comment on exported type ErrorMessage should be of the form "ErrorMessage ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported function MakeErrorMessage should be of the form "MakeErrorMessage ..." (golint)
    • Line 102: warning: comment on exported function WhereInError should be of the form "WhereInError ..." (golint)
    • skhuinfo-api/meal.go
    • Line 14: warning: comment on exported type MealID should be of the form "MealID ..." (with optional leading article) (golint)
    • Line 69: warning: exported type GetMealIdsResult should have comment or be unexported (golint)
    • Line 96: warning: exported type Diet should have comment or be unexported (golint)
    • Line 101: warning: exported type Lunch should have comment or be unexported (golint)
    • Line 107: warning: exported type Dinner should have comment or be unexported (golint)
    • Line 111: warning: exported type MealData should have comment or be unexported (golint)
    • skhuinfo-api/mock.go
    • Line 9: warning: comment on exported type HttpClient should be of the form "HttpClient ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported function HttpReal should be of the form "HttpReal ..." (golint)
    • Line 19: warning: comment on exported type HttpMock should be of the form "HttpMock ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported method HttpMock.Do should be of the form "Do ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.

    • skhuinfo-api/main.go
    • Line 8: warning: no required module provides package github.com/s-owl/skhuinfo-api/docs; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/s-owl/skhuinfo-api/docs (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/s-owl/skhuinfo-api/docs (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!