Preparing report...

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

A+    Excellent!    Found 40 issues across 152 files

Tweet

gofmt94%

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!


gocyclo96%

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.


golint78%

Golint is a linter for Go source code.

    • Go-Systems-Programming/Chapter08/cpSignal.go
    • Line 13: warning: exported var BUFFERSIZE should have comment or be unexported (golint)
    • Line 14: warning: exported var FILESIZE should have comment or be unexported (golint)
    • Line 15: warning: exported var BYTESWRITTEN should have comment or be unexported (golint)
    • Line 17: warning: exported function Copy should have comment or be unexported (golint)
    • Go-Systems-Programming/Chapter02/maps.go
    • Line 30: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 39: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 52: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Go-Systems-Programming/Chapter10/mutexRW.go
    • Line 9: warning: exported var Password should have comment or be unexported (golint)
    • Line 17: warning: exported function Change should have comment or be unexported (golint)
    • Line 26: warning: exported function Show should have comment or be unexported (golint)
    • Line 34: warning: exported function Counts 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!