Preparing report...

Report for github.com/budougumi0617/gopl

A+    Excellent!    Found 32 issues across 295 files

Tweet

gofmt99%

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!


gocyclo95%

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.


golint94%

Golint is a linter for Go source code.

    • gopl/ch12/ex09/sexpr/decode.go
    • Line 12: warning: exported type Token should have comment or be unexported (golint)
    • Line 13: warning: exported type Symbol should have comment or be unexported (golint)
    • Line 14: warning: exported type String should have comment or be unexported (golint)
    • Line 15: warning: exported type Int should have comment or be unexported (golint)
    • Line 16: warning: exported type StartList should have comment or be unexported (golint)
    • Line 17: warning: exported type EndList should have comment or be unexported (golint)
    • Line 31: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 37: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 49: warning: exported method Decoder.Token should have comment or be unexported (golint)
    • gopl/ch12/ex07/sexpr/decode.go
    • Line 14: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 24: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • Line 38: warning: exported method Decoder.More should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words