Preparing report...

Report for github.com/octu0/bp

A+    Excellent!    Found 15 issues across 24 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!


gocyclo91%

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.

    • bp/bufiopool_test.go
    • Line 332: warning: cyclomatic complexity 57 of function TestBufioPoolLenCap() is high (> 15) (gocyclo)
    • Line 15: warning: cyclomatic complexity 25 of function BenchmarkBufioReaderPool() is high (> 15) (gocyclo)
    • Line 180: warning: cyclomatic complexity 19 of function TestBufioPoolBufSize() is high (> 15) (gocyclo)
    • bp/mimagepool_test.go
    • Line 194: warning: cyclomatic complexity 17 of function TestMultiImageNRGBAPoolPutGet() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 17 of function TestMultiImageYCbCrPoolPutGet() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 17 of function TestMultiImageRGBAPoolPutGet() is high (> 15) (gocyclo)

golint45%

Golint is a linter for Go source code.

    • bp/imagepool.go
    • Line 11: warning: exported type ImageRGBAPool should have comment or be unexported (golint)
    • Line 20: warning: exported function NewImageRGBAPool should have comment or be unexported (golint)
    • Line 57: warning: exported method ImageRGBAPool.GetRef should have comment or be unexported (golint)
    • Line 78: warning: exported method ImageRGBAPool.Put should have comment or be unexported (golint)
    • Line 94: warning: exported method ImageRGBAPool.Len should have comment or be unexported (golint)
    • Line 98: warning: exported method ImageRGBAPool.Cap should have comment or be unexported (golint)
    • Line 102: warning: exported type ImageNRGBAPool should have comment or be unexported (golint)
    • Line 106: warning: exported function NewImageNRGBAPool should have comment or be unexported (golint)
    • Line 132: warning: exported method ImageNRGBAPool.GetRef should have comment or be unexported (golint)
    • Line 144: warning: exported type ImageYCbCrPool should have comment or be unexported (golint)
    • Line 167: warning: exported function NewImageYCbCrPool should have comment or be unexported (golint)
    • Line 206: warning: exported method ImageYCbCrPool.YStride should have comment or be unexported (golint)
    • Line 210: warning: exported method ImageYCbCrPool.UVStride should have comment or be unexported (golint)
    • Line 228: warning: exported method ImageYCbCrPool.GetRef should have comment or be unexported (golint)
    • Line 249: warning: exported method ImageYCbCrPool.Put should have comment or be unexported (golint)
    • Line 265: warning: exported method ImageYCbCrPool.Len should have comment or be unexported (golint)
    • Line 269: warning: exported method ImageYCbCrPool.Cap should have comment or be unexported (golint)
    • bp/mimagepool.go
    • Line 27: warning: exported function MultiImagePoolSize should have comment or be unexported (golint)
    • Line 33: warning: exported function MultiImagePoolOption should have comment or be unexported (golint)
    • Line 70: warning: exported type MultiImageRGBAPool should have comment or be unexported (golint)
    • Line 75: warning: exported function NewMultiImageRGBAPool should have comment or be unexported (golint)
    • Line 107: warning: exported method MultiImageRGBAPool.GetRef should have comment or be unexported (golint)
    • Line 123: warning: exported method MultiImageRGBAPool.Put should have comment or be unexported (golint)
    • Line 136: warning: exported type MultiImageNRGBAPool should have comment or be unexported (golint)
    • Line 141: warning: exported function NewMultiImageNRGBAPool should have comment or be unexported (golint)
    • Line 173: warning: exported method MultiImageNRGBAPool.GetRef should have comment or be unexported (golint)
    • Line 189: warning: exported method MultiImageNRGBAPool.Put should have comment or be unexported (golint)
    • Line 202: warning: exported type MultiImageYCbCrPool should have comment or be unexported (golint)
    • Line 208: warning: exported function NewMultiImageYCbCrPool should have comment or be unexported (golint)
    • Line 237: warning: exported method MultiImageYCbCrPool.GetRef should have comment or be unexported (golint)
    • Line 253: warning: exported method MultiImageYCbCrPool.Put should have comment or be unexported (golint)
    • bp/ref.go
    • Line 16: warning: exported type Ref should have comment or be unexported (golint)
    • Line 36: warning: exported type ByteRef should have comment or be unexported (golint)
    • Line 50: warning: exported method ByteRef.Bytes should have comment or be unexported (golint)
    • Line 62: warning: exported method ByteRef.Release should have comment or be unexported (golint)
    • Line 69: warning: exported type BufferRef should have comment or be unexported (golint)
    • Line 83: warning: exported method BufferRef.Buffer should have comment or be unexported (golint)
    • Line 95: warning: exported method BufferRef.Release should have comment or be unexported (golint)
    • Line 102: warning: exported type BufioReaderRef should have comment or be unexported (golint)
    • Line 116: warning: exported method BufioReaderRef.Reader should have comment or be unexported (golint)
    • Line 128: warning: exported method BufioReaderRef.Release should have comment or be unexported (golint)
    • Line 135: warning: exported type BufioWriterRef should have comment or be unexported (golint)
    • Line 149: warning: exported method BufioWriterRef.Writer should have comment or be unexported (golint)
    • Line 161: warning: exported method BufioWriterRef.Release should have comment or be unexported (golint)
    • Line 168: warning: exported type ImageRGBARef should have comment or be unexported (golint)
    • Line 184: warning: exported method ImageRGBARef.Image should have comment or be unexported (golint)
    • Line 196: warning: exported method ImageRGBARef.Release should have comment or be unexported (golint)
    • Line 203: warning: exported type ImageNRGBARef should have comment or be unexported (golint)
    • Line 219: warning: exported method ImageNRGBARef.Image should have comment or be unexported (golint)
    • Line 231: warning: exported method ImageNRGBARef.Release should have comment or be unexported (golint)
    • Line 238: warning: exported type ImageYCbCrRef should have comment or be unexported (golint)
    • Line 254: warning: exported method ImageYCbCrRef.Image should have comment or be unexported (golint)
    • Line 266: warning: exported method ImageYCbCrRef.Release should have comment or be unexported (golint)
    • bp/bytepool.go
    • Line 3: warning: exported type BytePool should have comment or be unexported (golint)
    • Line 9: warning: exported function NewBytePool should have comment or be unexported (golint)
    • Line 32: warning: exported method BytePool.GetRef should have comment or be unexported (golint)
    • Line 49: warning: exported method BytePool.Get should have comment or be unexported (golint)
    • Line 60: warning: exported method BytePool.Put should have comment or be unexported (golint)
    • Line 81: warning: exported method BytePool.Len should have comment or be unexported (golint)
    • Line 85: warning: exported method BytePool.Cap should have comment or be unexported (golint)
    • bp/bytepool_mmap.go
    • Line 10: warning: exported const DefaultMmapAlignment should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type MmapBytePool should have comment or be unexported (golint)
    • Line 30: warning: exported function NewMmapBytePool should have comment or be unexported (golint)
    • Line 63: warning: exported method MmapBytePool.GetRef should have comment or be unexported (golint)
    • Line 71: warning: exported method MmapBytePool.Get should have comment or be unexported (golint)
    • Line 86: warning: exported method MmapBytePool.Put should have comment or be unexported (golint)
    • Line 103: warning: exported method MmapBytePool.Len should have comment or be unexported (golint)
    • Line 107: warning: exported method MmapBytePool.Cap should have comment or be unexported (golint)
    • bp/copy.go
    • Line 14: warning: exported var ErrIOReadNagativeRead should have comment or be unexported (golint)
    • Line 17: warning: exported function Copy should have comment or be unexported (golint)
    • Line 22: warning: exported function ReadAll should have comment or be unexported (golint)
    • Line 27: warning: exported type CopyIOPool should have comment or be unexported (golint)
    • Line 31: warning: exported function NewCopyIOPool should have comment or be unexported (golint)
    • Line 37: warning: exported method CopyIOPool.Copy should have comment or be unexported (golint)
    • Line 44: warning: exported method CopyIOPool.ReadAll should have comment or be unexported (golint)
    • Line 66: warning: exported method CopyIOPool.Len should have comment or be unexported (golint)
    • Line 70: warning: exported method CopyIOPool.Cap should have comment or be unexported (golint)
    • bp/mbufferpool.go
    • Line 26: warning: exported function MultiBufferPoolSize should have comment or be unexported (golint)
    • Line 32: warning: exported function MultiBufferPoolOption should have comment or be unexported (golint)
    • Line 53: warning: exported type MultiBufferPool should have comment or be unexported (golint)
    • Line 58: warning: exported function NewMultiBufferPool should have comment or be unexported (golint)
    • Line 89: warning: exported method MultiBufferPool.GetRef should have comment or be unexported (golint)
    • Line 103: warning: exported method MultiBufferPool.Get should have comment or be unexported (golint)
    • Line 110: warning: exported method MultiBufferPool.Put should have comment or be unexported (golint)
    • bp/mbytepool.go
    • Line 25: warning: exported function MultiBytePoolSize should have comment or be unexported (golint)
    • Line 31: warning: exported function MultiBytePoolOption should have comment or be unexported (golint)
    • Line 52: warning: exported type MultiBytePool should have comment or be unexported (golint)
    • Line 57: warning: exported function NewMultiBytePool should have comment or be unexported (golint)
    • Line 88: warning: exported method MultiBytePool.GetRef should have comment or be unexported (golint)
    • Line 102: warning: exported method MultiBytePool.Get should have comment or be unexported (golint)
    • Line 110: warning: exported method MultiBytePool.Put should have comment or be unexported (golint)
    • bp/bp.go
    • Line 9: warning: exported type PoolSize should have comment or be unexported (golint)
    • Line 14: warning: exported type ByteGetPut should have comment or be unexported (golint)
    • Line 20: warning: exported type BytesBufferGetPut should have comment or be unexported (golint)
    • Line 26: warning: exported type BufioReaderGetPut should have comment or be unexported (golint)
    • Line 32: warning: exported type BufioWriterGetPut should have comment or be unexported (golint)
    • Line 38: warning: exported type ImageRGBAGetPut should have comment or be unexported (golint)
    • Line 43: warning: exported type ImageNRGBAGetPut should have comment or be unexported (golint)
    • Line 48: warning: exported type ImageYCbCrGetPut should have comment or be unexported (golint)
    • bp/bufferpool.go
    • Line 7: warning: exported type BufferPool should have comment or be unexported (golint)
    • Line 14: warning: exported function NewBufferPool should have comment or be unexported (golint)
    • Line 41: warning: exported method BufferPool.GetRef should have comment or be unexported (golint)
    • Line 58: warning: exported method BufferPool.Get should have comment or be unexported (golint)
    • Line 81: warning: exported method BufferPool.Put should have comment or be unexported (golint)
    • Line 101: warning: exported method BufferPool.Len should have comment or be unexported (golint)
    • Line 105: warning: exported method BufferPool.Cap should have comment or be unexported (golint)
    • bp/bufiopool.go
    • Line 12: warning: exported type BufioReaderPool should have comment or be unexported (golint)
    • Line 18: warning: exported function NewBufioReaderPool should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBufioReaderSizePool should have comment or be unexported (golint)
    • Line 44: warning: exported method BufioReaderPool.GetRef should have comment or be unexported (golint)
    • Line 61: warning: exported method BufioReaderPool.Get should have comment or be unexported (golint)
    • Line 74: warning: exported method BufioReaderPool.Put should have comment or be unexported (golint)
    • Line 99: warning: exported method BufioReaderPool.Len should have comment or be unexported (golint)
    • Line 103: warning: exported method BufioReaderPool.Cap should have comment or be unexported (golint)
    • Line 107: warning: exported type BufioWriterPool should have comment or be unexported (golint)
    • Line 113: warning: exported function NewBufioWriterPool should have comment or be unexported (golint)
    • Line 117: warning: exported function NewBufioWriterSizePool should have comment or be unexported (golint)
    • Line 139: warning: exported method BufioWriterPool.GetRef should have comment or be unexported (golint)
    • Line 156: warning: exported method BufioWriterPool.Get should have comment or be unexported (golint)
    • Line 169: warning: exported method BufioWriterPool.Put should have comment or be unexported (golint)
    • Line 194: warning: exported method BufioWriterPool.Len should have comment or be unexported (golint)
    • Line 198: warning: exported method BufioWriterPool.Cap should have comment or be unexported (golint)
    • bp/option.go
    • Line 28: warning: exported function Preload should have comment or be unexported (golint)
    • Line 34: warning: exported function PreloadRate should have comment or be unexported (golint)
    • Line 40: warning: exported function MaxBufSizeFactor should have comment or be unexported (golint)
    • Line 46: warning: exported function AutoGrow should have comment or be unexported (golint)
    • bp/version.go
    • Line 4: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!