Preparing report...

Report for github.com/q191201771/naza

A+    Excellent!    Found 73 issues across 120 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!


gocyclo99%

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.


golint47%

Golint is a linter for Go source code.

    • naza/pkg/fake/writer.go
    • Line 16: warning: exported type WriterType should have comment or be unexported (golint)
    • Line 19: warning: exported const WriterTypeDoNothing should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var ErrFakeWriter should have comment or be unexported (golint)
    • Line 28: warning: exported type Writer should have comment or be unexported (golint)
    • Line 35: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 41: warning: comment on exported method Writer.SetSpecificType should be of the form "SetSpecificType ..." (golint)
    • naza/pkg/nazanet/udp_connection.go
    • Line 16: warning: comment on exported type OnReadUDPPacket should be of the form "OnReadUDPPacket ..." (with optional leading article) (golint)
    • Line 20: warning: exported type UDPConnectionOption should have comment or be unexported (golint)
    • Line 45: warning: exported type UDPConnection should have comment or be unexported (golint)
    • Line 50: warning: exported type ModUDPConnectionOption should have comment or be unexported (golint)
    • Line 52: warning: exported function NewUDPConnection should have comment or be unexported (golint)
    • Line 73: warning: comment on exported method UDPConnection.RunLoop should be of the form "RunLoop ..." (golint)
    • Line 98: warning: comment on exported method UDPConnection.ReadWithTimeout should be of the form "ReadWithTimeout ..." (golint)
    • Line 119: warning: exported method UDPConnection.Write2Addr should have comment or be unexported (golint)
    • Line 124: warning: exported method UDPConnection.Dispose should have comment or be unexported (golint)
    • naza/pkg/crypto/aes_cbc.go
    • Line 16: warning: exported var CommonIV should have comment or be unexported (golint)
    • Line 18: warning: comment on exported function EncryptAESWithCBC should be of the form "EncryptAESWithCBC ..." (golint)
    • Line 33: warning: exported function DecryptAESWithCBC should have comment or be unexported (golint)
    • naza/pkg/connection/connection.go
    • Line 9: warning: package comment should be of the form "Package connection ..." (golint)
    • Line 34: warning: exported var ErrConnectionPanic should have comment or be unexported (golint)
    • Line 39: warning: exported type Connection should have comment or be unexported (golint)
    • Line 76: warning: exported type Stat should have comment or be unexported (golint)
    • Line 81: warning: exported type StatAtomic should have comment or be unexported (golint)
    • Line 86: warning: exported type WriteChanFullBehavior should have comment or be unexported (golint)
    • Line 89: warning: exported const WriteChanFullBehaviorReturnError should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported type Option should have comment or be unexported (golint)
    • Line 121: warning: exported type ModOption should have comment or be unexported (golint)
    • Line 123: warning: exported function New should have comment or be unexported (golint)
    • naza/pkg/nazabits/bits.go
    • Line 13: warning: exported var ErrNazaBits should have comment or be unexported (golint)
    • Line 15: warning: comment on exported type BitReader should be of the form "BitReader ..." (with optional leading article) (golint)
    • Line 26: warning: exported function NewBitReader should have comment or be unexported (golint)
    • Line 33: warning: exported method BitReader.ReadBit should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method BitReader.ReadBits8 should be of the form "ReadBits8 ..." (golint)
    • Line 63: warning: comment on exported method BitReader.ReadBits16 should be of the form "ReadBits16 ..." (golint)
    • Line 86: warning: comment on exported method BitReader.ReadBits32 should be of the form "ReadBits32 ..." (golint)
    • Line 110: warning: comment on exported method BitReader.ReadBits64 should be of the form "ReadBits64 ..." (golint)
    • Line 134: warning: comment on exported method BitReader.ReadBytes should be of the form "ReadBytes ..." (golint)
    • Line 158: warning: comment on exported method BitReader.ReadGolomb should be of the form "ReadGolomb ..." (golint)
    • Line 182: warning: exported method BitReader.SkipBytes should have comment or be unexported (golint)
    • Line 190: warning: exported method BitReader.SkipBits should have comment or be unexported (golint)
    • Line 207: warning: comment on exported method BitReader.AvailBits should be of the form "AvailBits ..." (golint)
    • Line 212: warning: exported method BitReader.Err should have comment or be unexported (golint)
    • Line 248: warning: exported type BitWriter should have comment or be unexported (golint)
    • Line 254: warning: exported function NewBitWriter should have comment or be unexported (golint)
    • Line 260: warning: comment on exported method BitWriter.WriteBit should be of the form "WriteBit ..." (golint)
    • Line 274: warning: comment on exported method BitWriter.WriteBits8 should be of the form "WriteBits8 ..." (golint)
    • Line 285: warning: exported method BitWriter.WriteBits16 should have comment or be unexported (golint)
    • Line 298: warning: comment on exported function GetBit8 should be of the form "GetBit8 ..." (golint)
    • Line 304: warning: comment on exported function GetBits8 should be of the form "GetBits8 ..." (golint)
    • Line 316: warning: exported function GetBit16 should have comment or be unexported (golint)
    • Line 323: warning: exported function GetBits16 should have comment or be unexported (golint)
    • naza/pkg/nazaatomic/atomic_64bit.go
    • Line 15: warning: exported type Int64 should have comment or be unexported (golint)
    • Line 19: warning: exported type Uint64 should have comment or be unexported (golint)
    • Line 25: warning: exported method Uint64.Load should have comment or be unexported (golint)
    • Line 29: warning: exported method Uint64.Store should have comment or be unexported (golint)
    • Line 33: warning: exported method Uint64.Add should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method Uint64.Sub should be of the form "Sub ..." (golint)
    • Line 42: warning: exported method Uint64.Increment should have comment or be unexported (golint)
    • Line 46: warning: exported method Uint64.Decrement should have comment or be unexported (golint)
    • Line 50: warning: exported method Uint64.CompareAndSwap should have comment or be unexported (golint)
    • Line 54: warning: exported method Uint64.Swap should have comment or be unexported (golint)
    • Line 60: warning: exported method Int64.Load should have comment or be unexported (golint)
    • Line 64: warning: exported method Int64.Store should have comment or be unexported (golint)
    • Line 68: warning: exported method Int64.Add should have comment or be unexported (golint)
    • Line 72: warning: comment on exported method Int64.Sub should be of the form "Sub ..." (golint)
    • Line 77: warning: exported method Int64.Increment should have comment or be unexported (golint)
    • Line 81: warning: exported method Int64.Decrement should have comment or be unexported (golint)
    • Line 85: warning: exported method Int64.CompareAndSwap should have comment or be unexported (golint)
    • Line 89: warning: exported method Int64.Swap should have comment or be unexported (golint)
    • naza/pkg/ratelimit/leakybucket.go
    • Line 17: warning: exported var ErrResourceNotAvailable should have comment or be unexported (golint)
    • Line 19: warning: comment on exported type LeakyBucket should be of the form "LeakyBucket ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported function NewLeakyBucket should be of the form "NewLeakyBucket ..." (golint)
    • Line 36: warning: comment on exported method LeakyBucket.TryAquire should be of the form "TryAquire ..." (golint)
    • Line 52: warning: comment on exported method LeakyBucket.WaitUntilAquire should be of the form "WaitUntilAquire ..." (golint)
    • Line 74: warning: comment on exported method LeakyBucket.MaybeAvailableIntervalMSec should be of the form "MaybeAvailableIntervalMSec ..." (golint)
    • naza/pkg/nazanet/avail_udp_conn_pool.go
    • Line 16: warning: comment on exported type AvailUDPConnPool should be of the form "AvailUDPConnPool ..." (with optional leading article) (golint)
    • Line 27: warning: exported function NewAvailUDPConnPool should have comment or be unexported (golint)
    • Line 35: warning: exported method AvailUDPConnPool.Acquire should have comment or be unexported (golint)
    • Line 62: warning: comment on exported method AvailUDPConnPool.Acquire2 should be of the form "Acquire2 ..." (golint)
    • Line 110: warning: comment on exported method AvailUDPConnPool.Peek should be of the form "Peek ..." (golint)
    • naza/pkg/nazalog/interface.go
    • Line 9: warning: package comment should be of the form "Package nazalog ..." (golint)
    • Line 29: warning: exported var ErrLog should have comment or be unexported (golint)
    • Line 31: warning: exported type Logger should have comment or be unexported (golint)
    • Line 72: warning: exported type Option should have comment or be unexported (golint)
    • Line 103: warning: exported type Level should have comment or be unexported (golint)
    • Line 106: warning: exported const LevelTrace should have comment (or a comment on this block) or be unexported (golint)
    • Line 116: warning: exported method Level.ReadableString should have comment or be unexported (golint)
    • Line 139: warning: exported type AssertBehavior should have comment or be unexported (golint)
    • Line 143: warning: exported const AssertError should have comment (or a comment on this block) or be unexported (golint)
    • Line 148: warning: exported method AssertBehavior.ReadableString should have comment or be unexported (golint)
    • Line 161: warning: exported type ModOption should have comment or be unexported (golint)
    • Line 163: warning: exported function New should have comment or be unexported (golint)
    • naza/pkg/nazasync/mutex.go
    • Line 26: warning: exported type Mutex should have comment or be unexported (golint)
    • Line 34: warning: exported method Mutex.Lock should have comment or be unexported (golint)
    • Line 51: warning: exported method Mutex.Unlock should have comment or be unexported (golint)
    • naza/pkg/fake/time.go
    • Line 15: warning: exported function Time_Now should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; func Time_Now should be TimeNow (golint)
    • Line 19: warning: exported function WithFakeTimeNow should have comment or be unexported (golint)
    • naza/pkg/nazahttp/file.go
    • Line 19: warning: comment on exported function GetHTTPFile should be of the form "GetHTTPFile ..." (golint)
    • Line 34: warning: comment on exported function DownloadHTTPFile should be of the form "DownloadHTTPFile ..." (golint)
    • naza/pkg/lru/lru.go
    • Line 13: warning: exported type LRU should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method LRU.Put should be of the form "Put ..." (golint)
    • Line 61: warning: exported method LRU.Get should have comment or be unexported (golint)
    • Line 71: warning: exported method LRU.Size should have comment or be unexported (golint)
    • naza/pkg/nazahttp/body.go
    • Line 19: warning: comment on exported function UnmarshalRequestJsonBody should be of the form "UnmarshalRequestJsonBody ..." (golint)
    • naza/pkg/filebatch/filebatch.go
    • Line 20: warning: comment on exported type WalkFunc should be of the form "WalkFunc ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported function Walk should be of the form "Walk ..." (golint)
    • Line 62: warning: comment on exported function AddTailContent should be of the form "AddTailContent ..." (golint)
    • Line 70: warning: comment on exported function AddHeadContent should be of the form "AddHeadContent ..." (golint)
    • Line 78: warning: comment on exported type LineRange should be of the form "LineRange ..." (with optional leading article) (golint)
    • Line 85: warning: exported var ErrLineRange should have comment or be unexported (golint)
    • Line 116: warning: exported function DeleteLines should have comment or be unexported (golint)
    • naza/pkg/bininfo/bininfo.go
    • Line 9: warning: package comment should be of the form "Package bininfo ..." (golint)
    • Line 21: warning: comment on exported var GitTag should be of the form "GitTag ..." (golint)
    • Line 23: warning: exported var GitCommitLog should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function StringifySingleLine should be of the form "StringifySingleLine ..." (golint)
    • Line 35: warning: comment on exported function StringifyMultiLine should be of the form "StringifyMultiLine ..." (golint)
    • naza/pkg/slicebytepool/slice_bucket.go
    • Line 15: warning: exported type SliceBucket should have comment or be unexported (golint)
    • Line 20: warning: exported function NewSliceBucket should have comment or be unexported (golint)
    • Line 24: warning: exported method SliceBucket.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method SliceBucket.Put should have comment or be unexported (golint)
    • naza/pkg/consistenthash/consistenthash.go
    • Line 19: warning: exported var ErrIsEmpty should have comment or be unexported (golint)
    • Line 21: warning: exported type ConsistentHash should have comment or be unexported (golint)
    • Line 34: warning: exported type HashFunc should have comment or be unexported (golint)
    • Line 36: warning: exported type Option should have comment or be unexported (golint)
    • Line 44: warning: exported type ModOption should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function New should be of the form "New ..." (golint)
    • naza/pkg/nazahttp/read_message.go
    • Line 16: warning: comment on exported type HTTPReader should be of the form "HTTPReader ..." (with optional leading article) (golint)
    • Line 22: warning: exported type HTTPMsgCtx should have comment or be unexported (golint)
    • Line 30: warning: exported type HTTPReqMsgCtx should have comment or be unexported (golint)
    • Line 38: warning: exported type HTTPRespMsgCtx should have comment or be unexported (golint)
    • Line 46: warning: exported function ReadHTTPRequestMessage should have comment or be unexported (golint)
    • Line 59: warning: exported function ReadHTTPResponseMessage should have comment or be unexported (golint)
    • Line 72: warning: comment on exported function ReadHTTPMessage should be of the form "ReadHTTPMessage ..." (golint)
    • naza/pkg/nazareflect/value.go
    • Line 16: warning: exported function IsNil should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function Equal should be of the form "Equal ..." (golint)
    • Line 46: warning: comment on exported function EqualInteger should be of the form "EqualInteger ..." (golint)
    • naza/playground/p3/p3.go
    • Line 18: warning: exported type Origin should have comment or be unexported (golint)
    • Line 23: warning: exported type WithPadding should have comment or be unexported (golint)
    • Line 32: warning: exported function OriginParallel should have comment or be unexported (golint)
    • Line 56: warning: exported function WithPaddingParallel should have comment or be unexported (golint)
    • naza/pkg/slicebytepool/shared_slicebyte.go
    • Line 15: warning: exported type SharedSliceByte should have comment or be unexported (golint)
    • Line 21: warning: exported type SharedSliceByteOption should have comment or be unexported (golint)
    • Line 29: warning: exported type ModSharedSliceByteOption should have comment or be unexported (golint)
    • Line 31: warning: exported function WithPool should have comment or be unexported (golint)
    • Line 37: warning: exported function NewSharedSliceByte should have comment or be unexported (golint)
    • Line 50: warning: exported function WrapSharedSliceByte should have comment or be unexported (golint)
    • Line 65: warning: exported method SharedSliceByte.Ref should have comment or be unexported (golint)
    • Line 70: warning: exported method SharedSliceByte.ReleaseIfNeeded should have comment or be unexported (golint)
    • naza/pkg/nazasync/goid.go
    • Line 20: warning: exported var ErrObtainGoroutineID should have comment or be unexported (golint)
    • Line 22: warning: exported function CurGoroutineID should have comment or be unexported (golint)
    • naza/pkg/assert/assert.go
    • Line 9: warning: package comment should be of the form "Package assert ..." (golint)
    • Line 14: warning: comment on exported type TestingT should be of the form "TestingT ..." (with optional leading article) (golint)
    • Line 23: warning: exported function Equal should have comment or be unexported (golint)
    • Line 33: warning: comment on exported function IsNotNil should be of the form "IsNotNil ..." (golint)
    • naza/pkg/slicebytepool/interface.go
    • Line 11: warning: exported type SliceBytePool should have comment or be unexported (golint)
    • Line 20: warning: exported type Status should have comment or be unexported (golint)
    • Line 27: warning: exported type Strategy should have comment or be unexported (golint)
    • Line 30: warning: comment on exported const StrategyMultiStdPoolBucket should be of the form "StrategyMultiStdPoolBucket ..." (golint)
    • Line 33: warning: comment on exported const StrategyMultiSlicePoolBucket should be of the form "StrategyMultiSlicePoolBucket ..." (golint)
    • Line 37: warning: exported type Bucket should have comment or be unexported (golint)
    • Line 44: warning: exported function NewSliceBytePool should have comment or be unexported (golint)
    • naza/pkg/crypto/pkcs.go
    • Line 16: warning: exported var ErrPKCS should have comment or be unexported (golint)
    • Line 18: warning: comment on exported function EncryptPKCS7 should be of the form "EncryptPKCS7 ..." (golint)
    • Line 26: warning: exported function DecryptPKCS7 should have comment or be unexported (golint)
    • Line 38: warning: exported function EncryptPKCS5 should have comment or be unexported (golint)
    • Line 42: warning: exported function DecryptPKCS5 should have comment or be unexported (golint)
    • naza/pkg/bitrate/bitrate.go
    • Line 16: warning: exported type Bitrate should have comment or be unexported (golint)
    • Line 23: warning: exported type Unit should have comment or be unexported (golint)
    • Line 26: warning: exported const UnitBitPerSec should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 43: warning: exported type ModOption should have comment or be unexported (golint)
    • Line 45: warning: exported function New should have comment or be unexported (golint)
    • naza/pkg/nazahttp/header.go
    • Line 15: warning: exported type LineReader should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function ReadHTTPHeader should be of the form "ReadHTTPHeader ..." (golint)
    • Line 59: warning: comment on exported function ParseHTTPRequestLine should be of the form "ParseHTTPRequestLine ..." (golint)
    • Line 64: warning: comment on exported function ParseHTTPStatusLine should be of the form "ParseHTTPStatusLine ..." (golint)
    • naza/pkg/slicebytepool/default.go
    • Line 13: warning: exported function Get should have comment or be unexported (golint)
    • Line 17: warning: exported function Put should have comment or be unexported (golint)
    • Line 21: warning: exported function RetrieveStatus should have comment or be unexported (golint)
    • Line 25: warning: exported function Init should have comment or be unexported (golint)
    • naza/pkg/slicebytepool/stdpool_bucket.go
    • Line 15: warning: exported type StdPoolBucket should have comment or be unexported (golint)
    • Line 19: warning: exported function NewStdPoolBucket should have comment or be unexported (golint)
    • Line 25: warning: exported method StdPoolBucket.Get should have comment or be unexported (golint)
    • Line 34: warning: exported method StdPoolBucket.Put should have comment or be unexported (golint)
    • naza/pkg/ratelimit/tokenbucket.go
    • Line 20: warning: exported var ErrTokenNotEnough should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type TokenBucket should be of the form "TokenBucket ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported function NewTokenBucket should be of the form "NewTokenBucket ..." (golint)
    • Line 49: warning: exported method TokenBucket.TryAquire should have comment or be unexported (golint)
    • Line 53: warning: exported method TokenBucket.WaitUntilAquire should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method TokenBucket.TryAquireWithNum should be of the form "TryAquireWithNum ..." (golint)
    • Line 72: warning: comment on exported method TokenBucket.WaitUntilAquireWithNum should be of the form "WaitUntilAquireWithNum ..." (golint)
    • Line 91: warning: comment on exported method TokenBucket.Dispose should be of the form "Dispose ..." (golint)
    • naza/pkg/nazastring/string.go
    • Line 28: warning: exported function SliceByteToStringTmp should have comment or be unexported (golint)
    • Line 32: warning: exported function StringToSliceByteTmp should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function DumpSliceByte should be of the form "DumpSliceByte ..." (golint)
    • Line 64: warning: comment on exported function SubSliceSafety should be of the form "SubSliceSafety ..." (golint)
    • naza/pkg/unique/unique.go
    • Line 9: warning: package comment should be of the form "Package unique ..." (golint)
    • Line 21: warning: exported function GenUniqueKey should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type SingleGenerator should be of the form "SingleGenerator ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported type MultiGenerator should be of the form "MultiGenerator ..." (with optional leading article) (golint)
    • Line 37: warning: exported function NewSingleGenerator should have comment or be unexported (golint)
    • Line 43: warning: exported method SingleGenerator.GenUniqueKey should have comment or be unexported (golint)
    • Line 47: warning: exported method MultiGenerator.GenUniqueKey should have comment or be unexported (golint)
    • naza/pkg/defertaskthread/interface.go
    • Line 11: warning: exported type TaskFn should have comment or be unexported (golint)
    • Line 13: warning: exported type DeferTaskThread should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDeferTaskThread should have comment or be unexported (golint)
    • naza/pkg/filesystemlayer/interface.go
    • Line 14: warning: exported type IFileSystemLayer should have comment or be unexported (golint)
    • Line 30: warning: exported type IFile should have comment or be unexported (golint)
    • Line 35: warning: exported type FSLType should have comment or be unexported (golint)
    • Line 38: warning: exported const FSLTypeDisk should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function FSLFactory should have comment or be unexported (golint)
    • naza/pkg/filesystemlayer/memory.go
    • Line 19: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 21: warning: exported type FSLMemory should have comment or be unexported (golint)
    • Line 30: warning: exported function NewFSLMemory should have comment or be unexported (golint)
    • Line 36: warning: exported method FSLMemory.Type should have comment or be unexported (golint)
    • Line 40: warning: exported method FSLMemory.Create should have comment or be unexported (golint)
    • Line 44: warning: exported method FSLMemory.Rename should have comment or be unexported (golint)
    • Line 56: warning: exported method FSLMemory.MkdirAll should have comment or be unexported (golint)
    • Line 60: warning: exported method FSLMemory.Remove should have comment or be unexported (golint)
    • Line 71: warning: exported method FSLMemory.RemoveAll should have comment or be unexported (golint)
    • Line 88: warning: exported method FSLMemory.ReadFile should have comment or be unexported (golint)
    • Line 98: warning: exported method FSLMemory.WriteFile should have comment or be unexported (golint)
    • naza/pkg/ic/ic.go
    • Line 9: warning: package comment should be of the form "Package ic ..." (golint)
    • Line 12: warning: comment on exported type Compressor should be of the form "Compressor ..." (with optional leading article) (golint)
    • naza/pkg/taskpool/global.go
    • Line 13: warning: exported function Go should have comment or be unexported (golint)
    • Line 17: warning: exported function GetCurrentStatus should have comment or be unexported (golint)
    • Line 21: warning: exported function KillIdleWorkers should have comment or be unexported (golint)
    • Line 25: warning: exported function Init should have comment or be unexported (golint)
    • naza/pkg/taskpool/interface.go
    • Line 9: warning: package comment should be of the form "Package taskpool ..." (golint)
    • Line 19: warning: exported var ErrTaskPool should have comment or be unexported (golint)
    • Line 21: warning: exported type TaskFn should have comment or be unexported (golint)
    • Line 23: warning: exported type Status should have comment or be unexported (golint)
    • Line 29: warning: exported type Pool should have comment or be unexported (golint)
    • Line 41: warning: exported type Option should have comment or be unexported (golint)
    • Line 56: warning: exported type ModOption should have comment or be unexported (golint)
    • Line 58: warning: exported function NewPool should have comment or be unexported (golint)
    • naza/pkg/snowflake/snowflake.go
    • Line 18: warning: exported var ErrInitial should have comment or be unexported (golint)
    • Line 22: warning: exported type Option should have comment or be unexported (golint)
    • Line 38: warning: exported type Node should have comment or be unexported (golint)
    • Line 53: warning: exported type ModOption should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 79: warning: exported method Node.Gen should have comment or be unexported (golint)
    • naza/pkg/ic/lf_compressor.go
    • Line 15: warning: exported type LFCompressor should have comment or be unexported (golint)
    • Line 22: warning: comment on exported method LFCompressor.Marshal should be of the form "Marshal ..." (golint)
    • Line 86: warning: exported method LFCompressor.Unmarshal should have comment or be unexported (golint)
    • naza/pkg/ic/origin_compressor.go
    • Line 13: warning: exported type OriginCompressor should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method OriginCompressor.Marshal should be of the form "Marshal ..." (golint)
    • Line 29: warning: exported method OriginCompressor.Unmarshal should have comment or be unexported (golint)
    • naza/pkg/nazajson/json.go
    • Line 16: warning: exported type JSON should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 27: warning: exported method JSON.Init should have comment or be unexported (golint)
    • Line 31: warning: comment on exported method JSON.Exist should be of the form "Exist ..." (golint)
    • naza/pkg/filesystemlayer/disk.go
    • Line 16: warning: exported type FSLDisk should have comment or be unexported (golint)
    • Line 19: warning: exported method FSLDisk.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method FSLDisk.Create should have comment or be unexported (golint)
    • Line 27: warning: exported method FSLDisk.Rename should have comment or be unexported (golint)
    • Line 31: warning: exported method FSLDisk.MkdirAll should have comment or be unexported (golint)
    • Line 35: warning: exported method FSLDisk.Remove should have comment or be unexported (golint)
    • Line 39: warning: exported method FSLDisk.RemoveAll should have comment or be unexported (golint)
    • Line 43: warning: exported method FSLDisk.ReadFile should have comment or be unexported (golint)
    • Line 47: warning: exported method FSLDisk.WriteFile should have comment or be unexported (golint)
    • naza/pkg/nazalog/global.go
    • Line 21: warning: exported function Tracef should have comment or be unexported (golint)
    • Line 25: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 29: warning: exported function Infof should have comment or be unexported (golint)
    • Line 33: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 37: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 41: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 46: warning: exported function Panicf should have comment or be unexported (golint)
    • Line 51: warning: exported function Trace should have comment or be unexported (golint)
    • Line 55: warning: exported function Debug should have comment or be unexported (golint)
    • Line 59: warning: exported function Info should have comment or be unexported (golint)
    • Line 63: warning: exported function Warn should have comment or be unexported (golint)
    • Line 67: warning: exported function Error should have comment or be unexported (golint)
    • Line 71: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 76: warning: exported function Panic should have comment or be unexported (golint)
    • Line 81: warning: exported function Output should have comment or be unexported (golint)
    • Line 86: warning: exported function Print should have comment or be unexported (golint)
    • Line 90: warning: exported function Printf should have comment or be unexported (golint)
    • Line 93: warning: exported function Println should have comment or be unexported (golint)
    • Line 96: warning: exported function Fatalln should have comment or be unexported (golint)
    • Line 100: warning: exported function Panicln should have comment or be unexported (golint)
    • Line 105: warning: exported function Assert should have comment or be unexported (golint)
    • Line 121: warning: exported function Out should have comment or be unexported (golint)
    • Line 125: warning: exported function Sync should have comment or be unexported (golint)
    • Line 129: warning: exported function WithPrefix should have comment or be unexported (golint)
    • Line 133: warning: exported function GetOption should have comment or be unexported (golint)
    • Line 142: warning: exported function SetGlobalLogger should have comment or be unexported (golint)
    • Line 146: warning: exported function GetGlobalLogger should have comment or be unexported (golint)
    • Line 150: warning: comment on exported function Init should be of the form "Init ..." (golint)
    • naza/pkg/bele/bele.go
    • Line 26: warning: exported function BEUint16 should have comment or be unexported (golint)
    • Line 30: warning: exported function BEUint24 should have comment or be unexported (golint)
    • Line 34: warning: exported function BEUint32 should have comment or be unexported (golint)
    • Line 38: warning: exported function BEUint64 should have comment or be unexported (golint)
    • Line 42: warning: exported function BEFloat64 should have comment or be unexported (golint)
    • Line 47: warning: exported function LEUint32 should have comment or be unexported (golint)
    • Line 51: warning: exported function ReadBytes should have comment or be unexported (golint)
    • Line 66: warning: exported function ReadString should have comment or be unexported (golint)
    • Line 71: warning: exported function ReadUint8 should have comment or be unexported (golint)
    • Line 79: warning: exported function ReadBEUint16 should have comment or be unexported (golint)
    • Line 87: warning: exported function ReadBEUint24 should have comment or be unexported (golint)
    • Line 95: warning: exported function ReadBEUint32 should have comment or be unexported (golint)
    • Line 103: warning: exported function ReadBEUint64 should have comment or be unexported (golint)
    • Line 111: warning: exported function ReadLEUint32 should have comment or be unexported (golint)
    • Line 121: warning: exported function BEPutUint16 should have comment or be unexported (golint)
    • Line 125: warning: exported function BEPutUint24 should have comment or be unexported (golint)
    • Line 131: warning: exported function BEPutUint32 should have comment or be unexported (golint)
    • Line 135: warning: exported function BEPutUint64 should have comment or be unexported (golint)
    • Line 139: warning: exported function LEPutUint32 should have comment or be unexported (golint)
    • Line 143: warning: exported function WriteBEUint24 should have comment or be unexported (golint)
    • Line 148: warning: exported function WriteBE should have comment or be unexported (golint)
    • Line 152: warning: exported function WriteLE should have comment or be unexported (golint)
    • naza/pkg/nazaatomic/atomic.go
    • Line 13: warning: exported type Bool should have comment or be unexported (golint)
    • Line 17: warning: exported type Int32 should have comment or be unexported (golint)
    • Line 21: warning: exported type Uint32 should have comment or be unexported (golint)
    • Line 27: warning: exported method Int32.Load should have comment or be unexported (golint)
    • Line 31: warning: exported method Int32.Store should have comment or be unexported (golint)
    • Line 35: warning: exported method Int32.Add should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method Int32.Sub should be of the form "Sub ..." (golint)
    • Line 44: warning: exported method Int32.Increment should have comment or be unexported (golint)
    • Line 48: warning: exported method Int32.Decrement should have comment or be unexported (golint)
    • Line 52: warning: exported method Int32.CompareAndSwap should have comment or be unexported (golint)
    • Line 56: warning: exported method Int32.Swap should have comment or be unexported (golint)
    • Line 62: warning: exported method Uint32.Load should have comment or be unexported (golint)
    • Line 66: warning: exported method Uint32.Store should have comment or be unexported (golint)
    • Line 70: warning: exported method Uint32.Add should have comment or be unexported (golint)
    • Line 74: warning: comment on exported method Uint32.Sub should be of the form "Sub ..." (golint)
    • Line 79: warning: exported method Uint32.Increment should have comment or be unexported (golint)
    • Line 83: warning: exported method Uint32.Decrement should have comment or be unexported (golint)
    • Line 87: warning: exported method Uint32.CompareAndSwap should have comment or be unexported (golint)
    • Line 91: warning: exported method Uint32.Swap should have comment or be unexported (golint)
    • Line 97: warning: exported method Bool.Load should have comment or be unexported (golint)
    • Line 101: warning: exported method Bool.Store should have comment or be unexported (golint)
    • Line 105: warning: exported method Bool.CompareAndSwap should have comment or be unexported (golint)
    • Line 109: warning: exported method Bool.Swap should have comment or be unexported (golint)
    • naza/pkg/nazaerrors/wrap113.go
    • Line 20: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 30: warning: exported function Unwrap should have comment or be unexported (golint)
    • Line 34: warning: exported function Is should have comment or be unexported (golint)
    • Line 38: warning: exported function As should have comment or be unexported (golint)
    • naza/pkg/nazahttp/http.go
    • Line 14: warning: exported var ErrHTTPHeader should have comment or be unexported (golint)
    • Line 19: warning: exported const HeaderFieldContentLength should have comment (or a comment on this block) or be unexported (golint)
    • naza/pkg/fake/exit.go
    • Line 15: warning: exported type ExitResult should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function OS_Exit should be of the form "OS_Exit ..." (golint)
    • Line 23: warning: don't use underscores in Go names; func OS_Exit should be OSExit (golint)
    • Line 27: warning: exported function WithFakeOSExit should have comment or be unexported (golint)
    • naza/pkg/circularqueue/circular_queue.go
    • Line 15: warning: exported var ErrCircularQueue should have comment or be unexported (golint)
    • Line 17: warning: exported type CircularQueue should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method CircularQueue.PushBack should be of the form "PushBack ..." (golint)
    • Line 44: warning: comment on exported method CircularQueue.PopFront should be of the form "PopFront ..." (golint)
    • Line 55: warning: comment on exported method CircularQueue.Front should be of the form "Front ..." (golint)
    • Line 64: warning: comment on exported method CircularQueue.Back should be of the form "Back ..." (golint)
    • Line 73: warning: comment on exported method CircularQueue.At should be of the form "At ..." (golint)
    • Line 82: warning: exported method CircularQueue.Size should have comment or be unexported (golint)
    • Line 86: warning: exported method CircularQueue.Full should have comment or be unexported (golint)
    • Line 90: warning: exported method CircularQueue.Empty should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • naza/pkg/lru/lru_test.go
    • Line 26: warning: ineffectual assignment to v (ineffassign)
    • Line 39: warning: ineffectual assignment to v (ineffassign)
    • Line 43: warning: ineffectual assignment to v (ineffassign)
    • Line 55: warning: ineffectual assignment to v (ineffassign)
    • naza/pkg/nazajson/json_test.go
    • Line 108: warning: ineffectual assignment to exist (ineffassign)
    • Line 109: warning: ineffectual assignment to exist (ineffassign)
    • Line 110: warning: ineffectual assignment to exist (ineffassign)
    • Line 112: warning: ineffectual assignment to exist (ineffassign)
    • Line 113: warning: ineffectual assignment to exist (ineffassign)
    • Line 114: warning: ineffectual assignment to exist (ineffassign)
    • Line 115: warning: ineffectual assignment to exist (ineffassign)
    • Line 117: warning: ineffectual assignment to exist (ineffassign)
    • Line 119: warning: ineffectual assignment to exist (ineffassign)
    • Line 121: warning: ineffectual assignment to exist (ineffassign)
    • Line 123: warning: ineffectual assignment to exist (ineffassign)
    • naza/pkg/nazabits/bits_test.go
    • Line 171: warning: ineffectual assignment to err (ineffassign)
    • Line 173: warning: ineffectual assignment to err (ineffassign)
    • Line 334: warning: ineffectual assignment to err (ineffassign)
    • Line 338: warning: ineffectual assignment to err (ineffassign)
    • Line 342: warning: ineffectual assignment to err (ineffassign)
    • Line 346: warning: ineffectual assignment to err (ineffassign)
    • Line 350: warning: ineffectual assignment to err (ineffassign)
    • Line 354: warning: ineffectual assignment to err (ineffassign)
    • Line 448: warning: ineffectual assignment to err (ineffassign)
    • Line 449: warning: ineffectual assignment to n (ineffassign)
    • Line 535: warning: ineffectual assignment to a (ineffassign)
    • Line 547: warning: ineffectual assignment to a (ineffassign)
    • Line 548: warning: ineffectual assignment to a (ineffassign)
    • Line 549: warning: ineffectual assignment to a (ineffassign)

misspell99%

Misspell Finds commonly misspelled English words