Preparing report...

Report for github.com/asticode/go-astikit

A+    Excellent!    Found 11 issues across 50 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!


golint90%

Golint is a linter for Go source code.

    • go-astikit/binary.go
    • Line 22: warning: exported type BitsWriterWriteCallback should have comment or be unexported (golint)
    • Line 46: warning: exported method BitsWriter.SetWriteCallback should have comment or be unexported (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 101: warning: comment on exported method BitsWriter.WriteBytesN should be of the form "WriteBytesN ..." (golint)
    • Line 212: warning: exported function NewBitsWriterBatch should have comment or be unexported (golint)
    • Line 225: warning: comment on exported method BitsWriterBatch.WriteN should be of the form "WriteN ..." (golint)
    • Line 232: warning: comment on exported method BitsWriterBatch.WriteBytesN should be of the form "WriteBytesN ..." (golint)
    • Line 239: warning: comment on exported method BitsWriterBatch.Err should be of the form "Err ..." (golint)
    • go-astikit/binary_test.go
    • Line 97: warning: don't use underscores in Go names; var bitsWriter_WriteBytesN_testCases should be bitsWriterWriteBytesNTestCases (golint)
    • go-astikit/http.go
    • Line 21: warning: exported var ErrHTTPSenderUnmarshaledError should have comment or be unexported (golint)
    • Line 310: warning: exported type HTTPDownloaderSrc should have comment or be unexported (golint)

gocyclo88%

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.

    • go-astikit/binary_test.go
    • Line 242: warning: cyclomatic complexity 26 of function testByteHamming84Decode() is high (> 15) (gocyclo)
    • Line 11: warning: cyclomatic complexity 21 of function TestBitsWriter() is high (> 15) (gocyclo)
    • go-astikit/pcm.go
    • Line 100: warning: cyclomatic complexity 18 of function (*PCMSampleRateConverter).Add() is high (> 15) (gocyclo)

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!


misspell98%

Misspell Finds commonly misspelled English words