Preparing report...

Report for github.com/shapeshed/golang-book-examples

A+    Excellent!    Found 49 issues across 195 files

Tweet

gofmt98%

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!


golint75%

Golint is a linter for Go source code.

    • golang-book-examples/hour25/example05/main.go
    • Line 10: warning: exported type Server should have comment or be unexported (golint)
    • Line 19: warning: exported function ListTasks should have comment or be unexported (golint)
    • Line 23: warning: exported function CreateTask should have comment or be unexported (golint)
    • Line 27: warning: exported function ReadTask should have comment or be unexported (golint)
    • Line 31: warning: exported function UpdateTask should have comment or be unexported (golint)
    • Line 35: warning: exported function DeleteTask should have comment or be unexported (golint)
    • golang-book-examples/hour25/example03/main.go
    • Line 10: warning: exported function ListTasks should have comment or be unexported (golint)
    • Line 14: warning: exported function CreateTask should have comment or be unexported (golint)
    • Line 18: warning: exported function ReadTask should have comment or be unexported (golint)
    • Line 22: warning: exported function UpdateTask should have comment or be unexported (golint)
    • Line 26: warning: exported function DeleteTask should have comment or be unexported (golint)
    • golang-book-examples/hour08/example06.go
    • Line 8: warning: exported type Robot should have comment or be unexported (golint)
    • Line 12: warning: exported type T850 should have comment or be unexported (golint)
    • Line 16: warning: exported method T850.PowerOn should have comment or be unexported (golint)
    • Line 20: warning: exported type R2D2 should have comment or be unexported (golint)
    • Line 24: warning: exported method R2D2.PowerOn should have comment or be unexported (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 32: warning: exported function Boot should have comment or be unexported (golint)
    • golang-book-examples/hour15/example05/example05.go
    • Line 8: warning: exported function StringFromAssignment should have comment or be unexported (golint)
    • Line 16: warning: exported function StringFromAppendJoin should have comment or be unexported (golint)
    • Line 24: warning: exported function StringFromBuffer should have comment or be unexported (golint)
    • golang-book-examples/hour25/example07/store.go
    • Line 15: warning: exported type Store should have comment or be unexported (golint)
    • Line 20: warning: comment on exported function NewStore should be of the form "NewStore ..." (golint)
    • Line 108: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 135: warning: receiver name b should be consistent with previous receiver name s for Store (golint)
    • golang-book-examples/hour25/example06/store.go
    • Line 9: warning: exported type Store should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function NewStore should be of the form "NewStore ..." (golint)
    • Line 81: warning: receiver name b should be consistent with previous receiver name s for Store (golint)
    • golang-book-examples/hour08/example02.go
    • Line 8: warning: exported type Sphere should have comment or be unexported (golint)
    • Line 12: warning: exported method Sphere.SurfaceArea should have comment or be unexported (golint)
    • Line 16: warning: exported method Sphere.Volume should have comment or be unexported (golint)
    • golang-book-examples/hour25/example04/main.go
    • Line 10: warning: exported function ListTasks should have comment or be unexported (golint)
    • Line 14: warning: exported function CreateTask should have comment or be unexported (golint)
    • Line 18: warning: exported function ReadTask should have comment or be unexported (golint)
    • Line 22: warning: exported function UpdateTask should have comment or be unexported (golint)
    • Line 26: warning: exported function DeleteTask should have comment or be unexported (golint)
    • golang-book-examples/hour25/example06/main.go
    • Line 13: warning: exported type Server should have comment or be unexported (golint)
    • Line 22: warning: exported function ListTasks should have comment or be unexported (golint)
    • Line 35: warning: exported function CreateTask should have comment or be unexported (golint)
    • Line 49: warning: exported function ReadTask should have comment or be unexported (golint)
    • Line 53: warning: exported function UpdateTask should have comment or be unexported (golint)
    • Line 57: warning: exported function DeleteTask should have comment or be unexported (golint)
    • golang-book-examples/hour25/example07/main.go
    • Line 13: warning: exported type Server should have comment or be unexported (golint)
    • Line 22: warning: exported function ListTasks should have comment or be unexported (golint)
    • Line 35: warning: exported function CreateTask should have comment or be unexported (golint)
    • Line 49: warning: exported function ReadTask should have comment or be unexported (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 72: warning: exported function UpdateTask should have comment or be unexported (golint)
    • Line 94: warning: exported function DeleteTask should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!