Preparing report...

Report for github.com/influx6/npkg

A    Great!    Found 55 issues across 110 files

Tweet

gofmt95%

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!


gocyclo89%

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.

    • npkg/npkg.go
    • Line 85: warning: cyclomatic complexity 43 of function Decode() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 20 of function EncodeList() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 20 of function EncodeKV() is high (> 15) (gocyclo)
    • npkg/nhttp/filesystem.go
    • Line 96: warning: cyclomatic complexity 17 of function HTTPGzipServe() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 17 of function GzipServe() is high (> 15) (gocyclo)
    • npkg/nreflect/reflection.go
    • Line 143: warning: cyclomatic complexity 22 of function CallFunc() is high (> 15) (gocyclo)
    • Line 309: warning: cyclomatic complexity 21 of function MatchFunction() is high (> 15) (gocyclo)
    • npkg/ntext/nscanner/scanner.go
    • Line 400: warning: cyclomatic complexity 30 of function (*Scanner).scanNumber() is high (> 15) (gocyclo)
    • Line 647: warning: cyclomatic complexity 24 of function (*Scanner).Scan() is high (> 15) (gocyclo)

golint61%

Golint is a linter for Go source code.

    • npkg/nenv/envfile.go
    • Line 14: warning: exported function ReadDotEnvFile should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function ParseDotEnvReader should be of the form "ParseDotEnvReader ..." (golint)
    • npkg/nstorage/nstorage.go
    • Line 12: warning: exported type EachItem should have comment or be unexported (golint)
    • Line 14: warning: exported type ScanResult should have comment or be unexported (golint)
    • npkg/njson/logger.go
    • Line 11: warning: exported function Log should have comment or be unexported (golint)
    • Line 17: warning: exported type LogStack should have comment or be unexported (golint)
    • Line 21: warning: exported type Logger should have comment or be unexported (golint)
    • npkg/nstorage/internal/tharness/test_harness.go
    • Line 16: warning: exported function TestByteStoreRemoveKeys should have comment or be unexported (golint)
    • Line 34: warning: exported function TestByteStoreScanMatch should have comment or be unexported (golint)
    • Line 65: warning: exported function TestByteStoreGetAnykeys should have comment or be unexported (golint)
    • Line 79: warning: exported function TestByteStoreGetAllkeys should have comment or be unexported (golint)
    • Line 93: warning: exported function TestByteStoreFindAll should have comment or be unexported (golint)
    • Line 115: warning: exported function TestByteStoreFindPrefix should have comment or be unexported (golint)
    • Line 149: warning: exported function TestByteStoreFindEach should have comment or be unexported (golint)
    • Line 172: warning: exported function TestByteStore should have comment or be unexported (golint)
    • Line 207: warning: exported function TestExpiryReset should have comment or be unexported (golint)
    • Line 236: warning: exported function TestExpirableStore should have comment or be unexported (golint)
    • npkg/nreflect/reflection.go
    • Line 76: warning: exported function NameOf should have comment or be unexported (golint)
    • Line 134: warning: comment on exported function CallFunc should be of the form "CallFunc ..." (golint)
    • Line 197: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 969: warning: exported function IsTypePtr should have comment or be unexported (golint)
    • Line 975: warning: exported function IsSameName should have comment or be unexported (golint)
    • Line 979: warning: exported function IsSameTypeName should have comment or be unexported (golint)
    • Line 985: warning: exported function IsType should have comment or be unexported (golint)
    • npkg/nstorage/nmap/mapexpr.go
    • Line 26: warning: exported method ExprByteStore.Count should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method ExprByteStore.Update should be of the form "Update ..." (golint)
    • Line 169: warning: comment on exported method ExprByteStore.EachKeyMatch should be of the form "EachKeyMatch ..." (golint)
    • Line 202: warning: exported method ExprByteStore.Clear should have comment or be unexported (golint)
    • npkg/nnet/location.go
    • Line 15: warning: exported type Agent should have comment or be unexported (golint)
    • Line 20: warning: exported function ParseAgent should have comment or be unexported (golint)
    • Line 31: warning: exported type Locations should have comment or be unexported (golint)
    • Line 33: warning: exported method Locations.Find should have comment or be unexported (golint)
    • Line 42: warning: exported type Location should have comment or be unexported (golint)
    • Line 67: warning: exported method Location.IPIsInLocation should have comment or be unexported (golint)
    • Line 83: warning: exported type LocationService should have comment or be unexported (golint)
    • Line 91: warning: exported method DudLocationService.Get should have comment or be unexported (golint)
    • Line 103: warning: exported type CampIPService should have comment or be unexported (golint)
    • Line 107: warning: exported method CampIPService.Get should have comment or be unexported (golint)
    • Line 134: warning: exported type IPStackService should have comment or be unexported (golint)
    • Line 138: warning: exported method IPStackService.Get should have comment or be unexported (golint)
    • npkg/nerror/errors.go
    • Line 15: warning: exported type IsError should have comment or be unexported (golint)
    • Line 46: warning: exported method ErrorStack.Add should have comment or be unexported (golint)
    • Line 54: warning: exported method ErrorStack.Err should have comment or be unexported (golint)
    • Line 286: warning: exported method PointingError.Add should have comment or be unexported (golint)
    • Line 294: warning: exported method PointingError.IsError should have comment or be unexported (golint)
    • Line 312: warning: exported type HasMessage should have comment or be unexported (golint)
    • Line 316: warning: exported method PointingError.HasMessage should have comment or be unexported (golint)
    • Line 320: warning: exported type ErrorMessage should have comment or be unexported (golint)
    • Line 324: warning: exported method PointingError.GetMessage should have comment or be unexported (golint)
    • Line 394: warning: exported function IsSameTypeName should have comment or be unexported (golint)
    • npkg/njs/producers/producers.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 7: warning: exported function ComposeComment should have comment or be unexported (golint)
    • Line 13: warning: exported function ComposeConsoleLog should have comment or be unexported (golint)
    • Line 19: warning: exported function ComposeReturnStatement should have comment or be unexported (golint)
    • Line 25: warning: exported function ComposeObject should have comment or be unexported (golint)
    • Line 31: warning: exported function ComposeObjectPropertyAssignment should have comment or be unexported (golint)
    • Line 37: warning: exported function ComposeVariable should have comment or be unexported (golint)
    • Line 43: warning: exported function ComposeReAssignVariable should have comment or be unexported (golint)
    • Line 49: warning: exported function ComposeIncrementVariable should have comment or be unexported (golint)
    • Line 55: warning: exported function ComposeDecrementVariable should have comment or be unexported (golint)
    • Line 61: warning: exported function ComposeClassBlock should have comment or be unexported (golint)
    • Line 67: warning: exported function ComposeVarFunction should have comment or be unexported (golint)
    • Line 73: warning: exported function ComposeFunction should have comment or be unexported (golint)
    • Line 79: warning: exported function ComposeFunctionCall should have comment or be unexported (golint)
    • Line 85: warning: exported function ComposeObjectPropertyName should have comment or be unexported (golint)
    • Line 91: warning: exported function ComposeChainFunction should have comment or be unexported (golint)
    • Line 97: warning: exported function ComposeNewInstance should have comment or be unexported (golint)
    • Line 106: warning: exported function ComposeObjectFunction should have comment or be unexported (golint)
    • Line 112: warning: exported function ComposeObjectFunctionCall should have comment or be unexported (golint)
    • Line 118: warning: exported function ComposeIfStatement should have comment or be unexported (golint)
    • Line 127: warning: exported function ComposeElseIfStatement should have comment or be unexported (golint)
    • Line 136: warning: exported function ComposeElseStatement should have comment or be unexported (golint)
    • Line 142: warning: exported function ComposeForLoop should have comment or be unexported (golint)
    • Line 148: warning: exported function ComposeTryBlock should have comment or be unexported (golint)
    • Line 156: warning: exported function ComposeCatchBlock should have comment or be unexported (golint)
    • Line 165: warning: exported function ComposeJSONStringify should have comment or be unexported (golint)
    • Line 173: warning: exported function ComposeJSONParse should have comment or be unexported (golint)
    • Line 181: warning: exported function ComposeChainObject should have comment or be unexported (golint)
    • Line 189: warning: exported function ComposeWindow should have comment or be unexported (golint)
    • Line 195: warning: exported function ComposeMath should have comment or be unexported (golint)
    • Line 201: warning: exported function ComposeSelf should have comment or be unexported (golint)
    • Line 207: warning: exported function ComposeParseFloat should have comment or be unexported (golint)
    • Line 213: warning: exported function ComposeParseInt should have comment or be unexported (golint)
    • Line 219: warning: exported function ComposeThis should have comment or be unexported (golint)
    • Line 225: warning: exported function ComposePromise should have comment or be unexported (golint)
    • Line 234: warning: exported function ComposeManyPromise should have comment or be unexported (golint)
    • Line 242: warning: exported function ComposePromiseThen should have comment or be unexported (golint)
    • Line 251: warning: exported function ComposePromiseCatch should have comment or be unexported (golint)
    • npkg/nenv/nenv.go
    • Line 14: warning: exported type Provider should have comment or be unexported (golint)
    • Line 27: warning: exported type ListLoader should have comment or be unexported (golint)
    • Line 29: warning: exported method ListLoader.Register should have comment or be unexported (golint)
    • Line 42: warning: exported type EnvReaderLoader should have comment or be unexported (golint)
    • Line 46: warning: exported method EnvReaderLoader.Register should have comment or be unexported (golint)
    • Line 58: warning: exported type EnvFileLoader should have comment or be unexported (golint)
    • Line 62: warning: exported method EnvFileLoader.Register should have comment or be unexported (golint)
    • Line 74: warning: exported type EnvironmentLoader should have comment or be unexported (golint)
    • Line 76: warning: exported method EnvironmentLoader.Register should have comment or be unexported (golint)
    • Line 90: warning: exported function LoadEnvironment should have comment or be unexported (golint)
    • Line 95: warning: exported function LoadFrom should have comment or be unexported (golint)
    • Line 127: warning: exported method EnvStore.Add should have comment or be unexported (golint)
    • npkg/nip/nip.go
    • Line 12: warning: exported var DefaultSubnet should have comment or be unexported (golint)
    • Line 54: warning: exported type PrivateSubnets should have comment or be unexported (golint)
    • Line 56: warning: exported method PrivateSubnets.ParseRequestIP should have comment or be unexported (golint)
    • npkg/nzip/nzip.go
    • Line 93: warning: comment on exported function UnzipUint32 should be of the form "UnzipUint32 ..." (golint)
    • Line 102: warning: comment on exported function UnzipInt32 should be of the form "UnzipInt32 ..." (golint)
    • Line 111: warning: comment on exported function UnzipInt64 should be of the form "UnzipInt64 ..." (golint)
    • Line 156: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 162: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 260: warning: comment on exported function DecodeInt32FromByte should be of the form "DecodeInt32FromByte ..." (golint)
    • Line 343: warning: comment on exported function EncodeFloat32 should be of the form "EncodeFloat32 ..." (golint)
    • Line 449: warning: exported function ZipText should have comment or be unexported (golint)
    • Line 504: warning: exported function UnzipText should have comment or be unexported (golint)
    • Line 582: warning: exported function QuoteBytes should have comment or be unexported (golint)
    • Line 602: warning: exported function QuoteString should have comment or be unexported (golint)
    • Line 627: warning: exported function UnescapeUnicodeString should have comment or be unexported (golint)
    • npkg/nframes/nframes.go
    • Line 69: warning: exported function GetCallerName should have comment or be unexported (golint)
    • Line 74: warning: exported function GetLineNumberWith should have comment or be unexported (golint)
    • Line 79: warning: exported function GetFileNameNameWith should have comment or be unexported (golint)
    • Line 84: warning: exported function GetCallerNameWith should have comment or be unexported (golint)
    • npkg/nlexing/nlexing.go
    • Line 9: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 11: warning: exported type ResultFunc should have comment or be unexported (golint)
    • Line 13: warning: exported type TokenFunc should have comment or be unexported (golint)
    • Line 15: warning: exported type Tokenizer should have comment or be unexported (golint)
    • Line 21: warning: exported function NewTokenizer should have comment or be unexported (golint)
    • Line 29: warning: exported method Tokenizer.Run should have comment or be unexported (golint)
    • Line 41: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 48: warning: exported function NewLexer should have comment or be unexported (golint)
    • npkg/njson/json.go
    • Line 103: warning: exported method JSON.AddFormatted should have comment or be unexported (golint)
    • Line 107: warning: exported method JSON.Formatted should have comment or be unexported (golint)
    • Line 111: warning: exported method JSON.AddStringMap should have comment or be unexported (golint)
    • Line 117: warning: exported method JSON.AddMap should have comment or be unexported (golint)
    • Line 123: warning: exported method JSON.StringMap should have comment or be unexported (golint)
    • Line 129: warning: exported method JSON.Map should have comment or be unexported (golint)
    • Line 135: warning: exported method JSON.AddList should have comment or be unexported (golint)
    • Line 139: warning: exported method JSON.AddObject should have comment or be unexported (golint)
    • Line 143: warning: exported method JSON.List should have comment or be unexported (golint)
    • Line 147: warning: exported method JSON.Object should have comment or be unexported (golint)
    • Line 151: warning: exported method JSON.Err should have comment or be unexported (golint)
    • Line 274: warning: comment on exported method JSON.AddListWith should be of the form "AddListWith ..." (golint)
    • Line 308: warning: comment on exported method JSON.AddObjectWith should be of the form "AddObjectWith ..." (golint)
    • Line 581: warning: exported method JSON.AppendBytes should have comment or be unexported (golint)
    • Line 871: warning: exported method JSON.Byte should have comment or be unexported (golint)
    • Line 886: warning: exported method JSON.AddByte should have comment or be unexported (golint)
    • npkg/nstorage/nredis/nredis.go
    • Line 71: warning: exported method RedisStore.Close should have comment or be unexported (golint)
    • Line 140: warning: comment on exported method RedisStore.EachKeyMatch should be of the form "EachKeyMatch ..." (golint)
    • Line 150: warning: comment on exported method RedisStore.ScanMatch should be of the form "ScanMatch ..." (golint)
    • npkg/ntext/nscanner/scanner.go
    • Line 5: warning: package comment should be of the form "Package nscanner ..." (golint)
    • Line 26: warning: comment on exported type Position should be of the form "Position ..." (with optional leading article) (golint)
    • npkg/nnet/nnet.go
    • Line 147: warning: exported function IPDotNotation2LongNotation should have comment or be unexported (golint)
    • Line 156: warning: exported function IPLongNotation2IPFromString should have comment or be unexported (golint)
    • Line 164: warning: exported function IPLongNotation2IP should have comment or be unexported (golint)
    • Line 170: warning: exported function IPLongNotation2DotNotation should have comment or be unexported (golint)
    • Line 177: warning: exported function IntToIP should have comment or be unexported (golint)
    • Line 186: warning: exported function IsTargetBetweenUsingCDIR should have comment or be unexported (golint)
    • Line 199: warning: exported function IsTargetBetween should have comment or be unexported (golint)
    • npkg/njs/njs.go
    • Line 51: warning: exported type Producer should have comment or be unexported (golint)
    • Line 52: warning: exported type Action should have comment or be unexported (golint)
    • Line 53: warning: exported type ActionProducer should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function ComposeProducers should be of the form "ComposeProducers ..." (golint)
    • Line 85: warning: exported type Var should have comment or be unexported (golint)
    • Line 90: warning: comment on exported function Variable should be of the form "Variable ..." (golint)
    • Line 104: warning: comment on exported function ReAssignVariable should be of the form "ReAssignVariable ..." (golint)
    • Line 114: warning: comment on exported function IncrementVariable should be of the form "IncrementVariable ..." (golint)
    • Line 130: warning: comment on exported function DecrementVariable should be of the form "DecrementVariable ..." (golint)
    • Line 146: warning: exported type Func should have comment or be unexported (golint)
    • Line 154: warning: comment on exported function VarFunction should be of the form "VarFunction ..." (golint)
    • Line 176: warning: comment on exported function Function should be of the form "Function ..." (golint)
    • Line 207: warning: exported function FunctionCall should have comment or be unexported (golint)
    • Line 216: warning: comment on exported function NewInstance should be of the form "NewInstance ..." (golint)
    • Line 235: warning: exported function JSONParse should have comment or be unexported (golint)
    • Line 240: warning: exported function JSONStringify should have comment or be unexported (golint)
    • Line 245: warning: exported function ChainObject should have comment or be unexported (golint)
    • Line 249: warning: exported function Self should have comment or be unexported (golint)
    • Line 253: warning: exported function Window should have comment or be unexported (golint)
    • Line 257: warning: exported function ParseInt should have comment or be unexported (golint)
    • Line 266: warning: exported function ParseFloat should have comment or be unexported (golint)
    • Line 275: warning: exported function Math should have comment or be unexported (golint)
    • Line 279: warning: exported function This should have comment or be unexported (golint)
    • Line 283: warning: exported function Object should have comment or be unexported (golint)
    • Line 288: warning: exported type Obj should have comment or be unexported (golint)
    • Line 294: warning: comment on exported function ObjectPropertyName should be of the form "ObjectPropertyName ..." (golint)
    • Line 324: warning: exported type ObjWithValue should have comment or be unexported (golint)
    • Line 329: warning: comment on exported function ObjectPropertyAssignment should be of the form "ObjectPropertyAssignment ..." (golint)
    • Line 360: warning: exported type ObjFuncCall should have comment or be unexported (golint)
    • Line 367: warning: exported type ObjFunc should have comment or be unexported (golint)
    • Line 372: warning: comment on exported function ObjectFunction should be of the form "ObjectFunction ..." (golint)
    • Line 401: warning: comment on exported function ObjectFunctionCall should be of the form "ObjectFunctionCall ..." (golint)
    • Line 425: warning: comment on exported function IfStatement should be of the form "IfStatement ..." (golint)
    • Line 442: warning: comment on exported function ElseIfStatement should be of the form "ElseIfStatement ..." (golint)
    • Line 459: warning: comment on exported function ElseStatement should be of the form "ElseStatement ..." (golint)
    • Line 472: warning: exported type Loop should have comment or be unexported (golint)
    • Line 479: warning: comment on exported function ForLoop should be of the form "ForLoop ..." (golint)
    • Line 495: warning: exported type Class should have comment or be unexported (golint)
    • Line 501: warning: exported function ClassBlock should have comment or be unexported (golint)
    • Line 510: warning: comment on exported function TryBlock should be of the form "TryBlock ..." (golint)
    • Line 520: warning: comment on exported function CatchBlock should be of the form "CatchBlock ..." (golint)
    • Line 546: warning: exported function ManyPromise should have comment or be unexported (golint)
    • Line 550: warning: exported function PromiseThen should have comment or be unexported (golint)
    • Line 555: warning: exported function PromiseCatch should have comment or be unexported (golint)
    • Line 560: warning: comment on exported function ChainFunction should be of the form "ChainFunction ..." (golint)
    • Line 570: warning: comment on exported function ReturnStatement should be of the form "ReturnStatement ..." (golint)
    • Line 579: warning: comment on exported function ConsoleLog should be of the form "ConsoleLog ..." (golint)
    • Line 587: warning: exported type TextBlock should have comment or be unexported (golint)
    • Line 592: warning: comment on exported function Comment should be of the form "Comment ..." (golint)
    • Line 609: warning: comment on exported function Indent should be of the form "Indent ..." (golint)
    • Line 637: warning: comment on exported function GenerateTabs should be of the form "GenerateTabs ..." (golint)
    • Line 653: warning: comment on exported function CleanCode should be of the form "CleanCode ..." (golint)
    • Line 664: warning: comment on exported function UniqueIteratorName should be of the form "UniqueIteratorName ..." (golint)
    • npkg/nrates/nrates.go
    • Line 33: warning: exported type RedisIncr should have comment or be unexported (golint)
    • Line 37: warning: exported function NewRedisIncr should have comment or be unexported (golint)
    • Line 45: warning: exported method RedisIncr.Reset should have comment or be unexported (golint)
    • Line 65: warning: exported method RedisIncr.Count should have comment or be unexported (golint)
    • Line 89: warning: exported method RedisIncr.Inc should have comment or be unexported (golint)
    • Line 111: warning: exported type Request should have comment or be unexported (golint)
    • Line 116: warning: exported type IncrementStore should have comment or be unexported (golint)
    • Line 122: warning: comment on exported function NewFactory should be of the form "NewFactory ..." (golint)
    • Line 127: warning: exported type LimiterFactory should have comment or be unexported (golint)
    • Line 132: warning: comment on exported method LimiterFactory.New should be of the form "New ..." (golint)
    • Line 150: warning: exported type RateLimiter should have comment or be unexported (golint)
    • npkg/nstr/str.go
    • Line 10: warning: exported function RandomBytes should have comment or be unexported (golint)
    • Line 19: warning: exported function RandomIDWithFormat should have comment or be unexported (golint)
    • Line 27: warning: exported function RandomID should have comment or be unexported (golint)
    • Line 35: warning: exported function RandomText should have comment or be unexported (golint)
    • Line 45: warning: exported function RandomAlphabet should have comment or be unexported (golint)
    • Line 50: warning: exported function RandomAlphabets should have comment or be unexported (golint)
    • npkg/nreflect/deepcopy.go
    • Line 178: warning: comment on exported function IndirectValue should be of the form "IndirectValue ..." (golint)
    • Line 186: warning: comment on exported function IndirectType should be of the form "IndirectType ..." (golint)
    • npkg/ndaemon/daemon.go
    • Line 22: warning: exported type Logger should have comment or be unexported (golint)
    • Line 26: warning: exported type DaemonJob should have comment or be unexported (golint)
    • Line 147: warning: exported type ServiceDaemon should have comment or be unexported (golint)
    • Line 187: warning: exported method ServiceDaemon.Run should have comment or be unexported (golint)
    • npkg/npkg.go
    • Line 189: warning: exported type Error should have comment or be unexported (golint)
    • Line 223: warning: exported type ObjectEncoderMethods should have comment or be unexported (golint)
    • Line 259: warning: exported type ListEncoderMethods should have comment or be unexported (golint)
    • Line 382: warning: comment on exported method EncodableMapList.EncodeList should be of the form "EncodeList ..." (golint)
    • Line 389: warning: exported type EncodedAnyList should have comment or be unexported (golint)
    • Line 391: warning: exported method EncodedAnyList.EncodeList should have comment or be unexported (golint)
    • Line 397: warning: exported type EncodedList should have comment or be unexported (golint)
    • Line 399: warning: exported method EncodedList.EncodeList should have comment or be unexported (golint)
    • Line 410: warning: comment on exported method EncodableMap.EncodeObject should be of the form "EncodeObject ..." (golint)
    • Line 417: warning: exported type EncodableStringListMap should have comment or be unexported (golint)
    • Line 419: warning: exported method EncodableStringListMap.EncodeObject should have comment or be unexported (golint)
    • Line 431: warning: comment on exported type EncodableStringMap should be of the form "EncodableStringMap ..." (with optional leading article) (golint)
    • Line 436: warning: comment on exported method EncodableStringMap.EncodeObject should be of the form "EncodeObject ..." (golint)
    • Line 443: warning: exported type Encoded should have comment or be unexported (golint)
    • Line 445: warning: exported type EncodableObjectFunc should have comment or be unexported (golint)
    • Line 447: warning: exported type Writer should have comment or be unexported (golint)
    • Line 461: warning: exported function NewWriteStack should have comment or be unexported (golint)
    • Line 468: warning: exported method WriteStack.SetWriter should have comment or be unexported (golint)
    • Line 473: warning: exported method WriteStack.New should have comment or be unexported (golint)
    • Line 479: warning: exported method WriteStack.End should have comment or be unexported (golint)
    • Line 488: warning: exported method WriteStack.Formatted should have comment or be unexported (golint)
    • Line 493: warning: exported method WriteStack.AddFormatted should have comment or be unexported (golint)
    • Line 498: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 501: warning: exported const DEBUG should have comment (or a comment on this block) or be unexported (golint)
    • Line 509: warning: exported method WriteStack.LInfo should have comment or be unexported (golint)
    • Line 513: warning: exported method WriteStack.LError should have comment or be unexported (golint)
    • Line 517: warning: exported method WriteStack.LDebug should have comment or be unexported (golint)
    • Line 521: warning: exported method WriteStack.LCritical should have comment or be unexported (golint)
    • Line 525: warning: exported method WriteStack.LPanic should have comment or be unexported (golint)
    • Line 529: warning: exported method WriteStack.LWarn should have comment or be unexported (golint)
    • Line 533: warning: exported method WriteStack.Level should have comment or be unexported (golint)
    • Line 538: warning: exported method WriteStack.Message should have comment or be unexported (golint)
    • Line 543: warning: exported method WriteStack.AddInt should have comment or be unexported (golint)
    • Line 548: warning: exported method WriteStack.AddBool should have comment or be unexported (golint)
    • Line 553: warning: exported method WriteStack.AddUInt should have comment or be unexported (golint)
    • Line 558: warning: exported method WriteStack.AddInt8 should have comment or be unexported (golint)
    • Line 563: warning: exported method WriteStack.AddInt16 should have comment or be unexported (golint)
    • Line 568: warning: exported method WriteStack.AddInt32 should have comment or be unexported (golint)
    • Line 573: warning: exported method WriteStack.AddByte should have comment or be unexported (golint)
    • Line 578: warning: exported method WriteStack.AddInt64 should have comment or be unexported (golint)
    • Line 583: warning: exported method WriteStack.AddUInt8 should have comment or be unexported (golint)
    • Line 588: warning: exported method WriteStack.AddUInt16 should have comment or be unexported (golint)
    • Line 593: warning: exported method WriteStack.AddUInt32 should have comment or be unexported (golint)
    • Line 598: warning: exported method WriteStack.AddUInt64 should have comment or be unexported (golint)
    • Line 603: warning: exported method WriteStack.AddError should have comment or be unexported (golint)
    • Line 608: warning: exported method WriteStack.AddString should have comment or be unexported (golint)
    • Line 613: warning: exported method WriteStack.AddFloat64 should have comment or be unexported (golint)
    • Line 618: warning: exported method WriteStack.AddFloat32 should have comment or be unexported (golint)
    • Line 623: warning: exported method WriteStack.AddBase64 should have comment or be unexported (golint)
    • Line 628: warning: exported method WriteStack.AddMap should have comment or be unexported (golint)
    • Line 633: warning: exported method WriteStack.AddStringMap should have comment or be unexported (golint)
    • Line 638: warning: exported method WriteStack.AddList should have comment or be unexported (golint)
    • Line 643: warning: exported method WriteStack.AddObject should have comment or be unexported (golint)
    • Line 648: warning: exported method WriteStack.AddObjectWith should have comment or be unexported (golint)
    • Line 653: warning: exported method WriteStack.AddListWith should have comment or be unexported (golint)
    • Line 658: warning: exported method WriteStack.Err should have comment or be unexported (golint)
    • Line 665: warning: exported method WriteStack.Int should have comment or be unexported (golint)
    • Line 670: warning: exported method WriteStack.UInt should have comment or be unexported (golint)
    • Line 675: warning: exported method WriteStack.Bool should have comment or be unexported (golint)
    • Line 680: warning: exported method WriteStack.Int8 should have comment or be unexported (golint)
    • Line 685: warning: exported method WriteStack.Hex should have comment or be unexported (golint)
    • Line 690: warning: exported method WriteStack.UInt8 should have comment or be unexported (golint)
    • Line 695: warning: exported method WriteStack.Int16 should have comment or be unexported (golint)
    • Line 700: warning: exported method WriteStack.UInt16 should have comment or be unexported (golint)
    • Line 705: warning: exported method WriteStack.Int32 should have comment or be unexported (golint)
    • Line 710: warning: exported method WriteStack.UInt32 should have comment or be unexported (golint)
    • Line 715: warning: exported method WriteStack.Int64 should have comment or be unexported (golint)
    • Line 720: warning: exported method WriteStack.UInt64 should have comment or be unexported (golint)
    • Line 735: warning: exported method WriteStack.Bytes should have comment or be unexported (golint)
    • Line 740: warning: exported method WriteStack.Float64 should have comment or be unexported (golint)
    • Line 745: warning: exported method WriteStack.Float32 should have comment or be unexported (golint)
    • Line 750: warning: exported method WriteStack.Base64 should have comment or be unexported (golint)
    • Line 755: warning: exported method WriteStack.Map should have comment or be unexported (golint)
    • Line 760: warning: exported method WriteStack.StringMap should have comment or be unexported (golint)
    • Line 765: warning: exported method WriteStack.List should have comment or be unexported (golint)
    • Line 770: warning: exported method WriteStack.Object should have comment or be unexported (golint)
    • Line 775: warning: exported method WriteStack.ObjectFor should have comment or be unexported (golint)
    • Line 780: warning: exported method WriteStack.ListFor should have comment or be unexported (golint)
    • npkg/ndaemon/signal.go
    • Line 13: warning: exported function WaitForKill should have comment or be unexported (golint)
    • Line 18: warning: exported function WaitForKillChan should have comment or be unexported (golint)
    • Line 24: warning: exported function ContextFromKillSignal should have comment or be unexported (golint)
    • Line 28: warning: exported function ContextFromKillSignalWithCtx should have comment or be unexported (golint)
    • Line 56: warning: context.Context should be the first parameter of a function (golint)
    • Line 112: warning: comment on exported function SignalWithContext should be of the form "SignalWithContext ..." (golint)
    • Line 115: warning: context.Context should be the first parameter of a function (golint)
    • Line 129: warning: comment on exported function CtxAndErrGroupForSignal should be of the form "CtxAndErrGroupForSignal ..." (golint)
    • npkg/ntext/ntabwriter/tabwriter.go
    • Line 5: warning: package comment should be of the form "Package ntabwriter ..." (golint)
    • Line 197: warning: comment on exported method Writer.Init should be of the form "Init ..." (golint)
    • Line 424: warning: comment on exported const Escape should be of the form "Escape ..." (golint)
    • npkg/njobs/njobs.go
    • Line 16: warning: exported type Job should have comment or be unexported (golint)
    • Line 20: warning: exported type JobFunction should have comment or be unexported (golint)
    • Line 22: warning: exported method JobFunction.Do should have comment or be unexported (golint)
    • Line 215: warning: exported function WhenFileExists should have comment or be unexported (golint)
    • Line 229: warning: exported function ExecuteCommand should have comment or be unexported (golint)
    • Line 252: warning: exported function WhenFilePathNotExists should have comment or be unexported (golint)
    • Line 265: warning: exported function WhenDirFileNotExists should have comment or be unexported (golint)
    • Line 283: warning: exported function WhenNextPathNotExists should have comment or be unexported (golint)
    • Line 356: warning: exported method Jobs.Add should have comment or be unexported (golint)
    • Line 360: warning: exported method Jobs.Do should have comment or be unexported (golint)
    • npkg/nthen/nthen.go
    • Line 3: warning: exported type Future should have comment or be unexported (golint)
    • Line 9: warning: exported function NewFuture should have comment or be unexported (golint)
    • Line 15: warning: exported function Fn should have comment or be unexported (golint)
    • Line 21: warning: exported function From should have comment or be unexported (golint)
    • npkg/nstorage/nmap/nmap.go
    • Line 364: warning: exported method ByteMap.Count should have comment or be unexported (golint)
    • Line 488: warning: exported method ExpiringByteMap.GetAnyKeys should have comment or be unexported (golint)
    • Line 509: warning: exported method ExpiringByteMap.GetAllKeys should have comment or be unexported (golint)
    • Line 634: warning: exported method ExpiringByteMap.Count should have comment or be unexported (golint)
    • Line 640: warning: exported method ExpiringByteMap.Reset should have comment or be unexported (golint)
    • npkg/ntrace/ntrace.go
    • Line 61: warning: comment on exported function WithMethodTrace should be of the form "WithMethodTrace ..." (golint)
    • Line 123: warning: comment on exported function OpenTracingMW should be of the form "OpenTracingMW ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell89%

Misspell Finds commonly misspelled English words

    • npkg/nbag/nbag.go
    • Line 66: warning: "previos" is a misspelling of "previous" (misspell)
    • Line 334: warning: "provded" is a misspelling of "provided" (misspell)
    • npkg/nreflect/reflection.go
    • Line 14: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 209: warning: "postion" is a misspelling of "position" (misspell)
    • Line 387: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 391: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 391: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 394: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 431: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 452: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 452: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 461: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 461: warning: "embeded" is a misspelling of "embedded" (misspell)
    • Line 468: warning: "embeded" is a misspelling of "embedded" (misspell)