Preparing report...

Report for github.com/PacktPublishing/Learning-Go-Programming

A+    Excellent!    Found 74 issues across 237 files

Tweet

gofmt89%

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!


golint78%

Golint is a linter for Go source code.

    • Learning-Go-Programming/ch11/curr1/currency.go
    • Line 10: warning: exported type Currency should have comment or be unexported (golint)
    • Line 17: warning: exported type CurrencyRequest should have comment or be unexported (golint)
    • Line 22: warning: exported function Load should have comment or be unexported (golint)
    • Line 50: warning: exported function Find should have comment or be unexported (golint)
    • Learning-Go-Programming/ch09/sync1.go
    • Line 5: warning: exported type Service should have comment or be unexported (golint)
    • Line 10: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 17: warning: exported method Service.Stop should have comment or be unexported (golint)
    • Learning-Go-Programming/ch03/ifstmt.go
    • Line 5: warning: exported type Currency should have comment or be unexported (golint)
    • Line 11: warning: exported var CAD should have comment or be unexported (golint)
    • Line 12: warning: exported var FJD should have comment or be unexported (golint)
    • Line 13: warning: exported var JMD should have comment or be unexported (golint)
    • Line 14: warning: exported var USD should have comment or be unexported (golint)
    • Learning-Go-Programming/ch03/ifstmt2.go
    • Line 8: warning: exported type Currency should have comment or be unexported (golint)
    • Line 14: warning: exported var CAD should have comment or be unexported (golint)
    • Line 15: warning: exported var FJD should have comment or be unexported (golint)
    • Line 16: warning: exported var JMD should have comment or be unexported (golint)
    • Line 17: warning: exported var USD should have comment or be unexported (golint)
    • Learning-Go-Programming/ch10/json3.go
    • Line 10: warning: exported type Name should have comment or be unexported (golint)
    • Line 14: warning: exported method Name.MarshalJSON should have comment or be unexported (golint)
    • Line 18: warning: exported type Book should have comment or be unexported (golint)
    • Learning-Go-Programming/ch09/sync3.go
    • Line 8: warning: exported type Service should have comment or be unexported (golint)
    • Line 14: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 24: warning: exported method Service.Stop should have comment or be unexported (golint)
    • Learning-Go-Programming/ch02/enum1.go
    • Line 8: warning: exported const StarHyperGiant should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported const StarDwarf should have comment (or a comment on this block) or be unexported (golint)
    • Learning-Go-Programming/ch12/vector/vec.go
    • Line 13: warning: exported type Vector should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type SimpleVector should be of the form "SimpleVector ..." (with optional leading article) (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method SimpleVector.Eq2 should be of the form "Eq2 ..." (golint)
    • Line 72: warning: comment on exported method SimpleVector.IsZero should be of the form "IsZero ..." (golint)
    • Line 138: warning: exported method SimpleVector.Proj should have comment or be unexported (golint)
    • Learning-Go-Programming/ch10/json4.go
    • Line 11: warning: exported type Name should have comment or be unexported (golint)
    • Line 15: warning: exported method Name.UnmarshalJSON should have comment or be unexported (golint)
    • Line 27: warning: exported type Book should have comment or be unexported (golint)
    • Learning-Go-Programming/ch02/enum2.go
    • Line 8: warning: exported const StarHyperGiant should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported const StarDwarf should have comment (or a comment on this block) or be unexported (golint)
    • Learning-Go-Programming/ch09/sync4.go
    • Line 8: warning: exported type Service should have comment or be unexported (golint)
    • Line 15: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 28: warning: exported method Service.Stop should have comment or be unexported (golint)
    • Line 37: warning: exported method Service.Serve should have comment or be unexported (golint)
    • Learning-Go-Programming/ch09/sync2.go
    • Line 8: warning: exported type Service should have comment or be unexported (golint)
    • Line 14: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 23: warning: exported method Service.Stop 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!


misspell96%

Misspell Finds commonly misspelled English words