Preparing report...

Report for github.com/assetnote/kiterunner

B    Not bad!    Found 75 issues across 87 files

Tweet

gofmt37%

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!


golint52%

Golint is a linter for Go source code.

    • kiterunner/pkg/proute/kiterunner.go
    • Line 10: warning: exported function APIsToKiterunnerRoutes should have comment or be unexported (golint)
    • Line 23: warning: exported function ToKiterunnerRoutes should have comment or be unexported (golint)
    • Line 47: warning: exported method Route.ToKiterunner should have comment or be unexported (golint)
    • kiterunner/pkg/kiterunner/result.go
    • Line 16: warning: exported type Result should have comment or be unexported (golint)
    • Line 73: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 140: warning: comment on exported method Result.AppendPrettyBytes should be of the form "AppendPrettyBytes ..." (golint)
    • Line 189: warning: comment on exported method Result.AppendBytes should be of the form "AppendBytes ..." (golint)
    • Line 253: warning: exported function LogResult should have comment or be unexported (golint)
    • kiterunner/internal/wordlist/metadata.go
    • Line 19: warning: exported type WordlistMetadata should have comment or be unexported (golint)
    • Line 30: warning: exported function GetRemoteWordlists should have comment or be unexported (golint)
    • Line 60: warning: exported method WordlistMetadata.LocalFilenamePanic should have comment or be unexported (golint)
    • Line 70: warning: exported method WordlistMetadata.LocalKiteFilename should have comment or be unexported (golint)
    • Line 81: warning: exported method WordlistMetadata.LocalFilename should have comment or be unexported (golint)
    • Line 128: warning: comment on exported method WordlistMetadata.APIS should be of the form "APIS ..." (golint)
    • Line 176: warning: comment on exported method WordlistMetadata.Words should be of the form "Words ..." (golint)
    • Line 208: warning: comment on exported method WordlistMetadata.IsCached should be of the form "IsCached ..." (golint)
    • kiterunner/pkg/http/response.go
    • Line 10: warning: exported type Response should have comment or be unexported (golint)
    • Line 33: warning: exported type Responses should have comment or be unexported (golint)
    • Line 35: warning: exported method Responses.MarshalZerologArray should have comment or be unexported (golint)
    • Line 41: warning: exported method Response.Flatten should have comment or be unexported (golint)
    • Line 48: warning: exported method Response.MarshalZerologObject should have comment or be unexported (golint)
    • Line 54: warning: exported method Response.AppendRedirectChain should have comment or be unexported (golint)
    • Line 79: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 85: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 90: warning: exported method Response.AddHeader should have comment or be unexported (golint)
    • Line 97: warning: exported method Response.Reset should have comment or be unexported (golint)
    • kiterunner/pkg/kiterunner/preflight.go
    • Line 15: warning: exported type WildcardResponse should have comment or be unexported (golint)
    • Line 28: warning: exported type WildcardResponses should have comment or be unexported (golint)
    • Line 30: warning: exported method WildcardResponses.UniqueAdd should have comment or be unexported (golint)
    • Line 40: warning: exported type ReqMsgType should have comment or be unexported (golint)
    • Line 43: warning: exported const PreflightMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type ReqMsg should have comment or be unexported (golint)
    • Line 59: warning: exported var ReqMsgPool should have comment or be unexported (golint)
    • Line 120: warning: exported var PreflightCheckRoutes should have comment or be unexported (golint)
    • Line 181: warning: exported type ErrFailedPreflight should have comment or be unexported (golint)
    • kiterunner/benchmark/concurrency_test.go
    • Line 225: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 381: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 483: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • kiterunner/internal/wordlist/local.go
    • Line 15: warning: exported function GetLocalDirPanic should have comment or be unexported (golint)
    • Line 23: warning: exported function GetLocalDir should have comment or be unexported (golint)
    • Line 33: warning: exported function CreateLocalCache should have comment or be unexported (golint)
    • Line 46: warning: exported function GetLocalDirListing should have comment or be unexported (golint)
    • kiterunner/pkg/kitebuilder/parse.go
    • Line 34: warning: exported function LoadJSONReader should have comment or be unexported (golint)
    • Line 410: warning: exported function UnmarshalJSONString should have comment or be unexported (golint)
    • Line 429: warning: exported function GetMapString should have comment or be unexported (golint)
    • Line 441: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 453: warning: comment on exported function LoadJSONString should be of the form "LoadJSONString ..." (golint)
    • kiterunner/internal/wordlist/list.go
    • Line 17: warning: exported const RemoteWordlistBase should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 29: warning: exported type Format should have comment or be unexported (golint)
    • Line 32: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported var ErrInvalidFormat should have comment or be unexported (golint)
    • Line 42: warning: exported function FormatFromString should have comment or be unexported (golint)
    • Line 54: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 58: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 60: warning: exported function OutputFormat should have comment or be unexported (golint)
    • Line 66: warning: exported function NewListOptions should have comment or be unexported (golint)
    • Line 74: warning: exported function List should have comment or be unexported (golint)
    • Line 148: warning: exported function TabString should have comment or be unexported (golint)
    • kiterunner/pkg/proute/route.go
    • Line 32: warning: exported method Route.QueryParams should have comment or be unexported (golint)
    • Line 42: warning: exported type ContentType should have comment or be unexported (golint)
    • Line 45: warning: exported var ContentTypeAny should have comment or be unexported (golint)
    • Line 53: warning: exported function DefaultValTagFunc should have comment or be unexported (golint)
    • Line 118: warning: comment on exported method Route.Body should be of the form "Body ..." (golint)
    • Line 139: warning: exported method Route.Headers should have comment or be unexported (golint)
    • Line 163: warning: exported type KV should have comment or be unexported (golint)
    • kiterunner/pkg/http/routes.go
    • Line 37: warning: exported type RouteMap should have comment or be unexported (golint)
    • Line 39: warning: exported method RouteMap.FlattenCount should have comment or be unexported (golint)
    • Line 47: warning: exported method RouteMap.Flatten should have comment or be unexported (golint)
    • kiterunner/internal/scan/options.go
    • Line 25: warning: exported const DefaultUserAgent should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type ScanOptions should have comment or be unexported (golint)
    • Line 74: warning: exported method ScanOptions.KiterunnerOptions should have comment or be unexported (golint)
    • Line 126: warning: exported function NewDefaultScanOptions should have comment or be unexported (golint)
    • Line 190: warning: exported function ForceMethod should have comment or be unexported (golint)
    • Line 197: warning: exported function Precheck should have comment or be unexported (golint)
    • Line 204: warning: exported function ShowProgress should have comment or be unexported (golint)
    • Line 211: warning: exported function UserAgent should have comment or be unexported (golint)
    • Line 218: warning: exported function Timeout should have comment or be unexported (golint)
    • Line 225: warning: exported function Delay should have comment or be unexported (golint)
    • Line 232: warning: exported function MaxParallelHosts should have comment or be unexported (golint)
    • Line 239: warning: exported function MaxRedirects should have comment or be unexported (golint)
    • Line 246: warning: exported function MaxConnPerHost should have comment or be unexported (golint)
    • Line 324: warning: exported function LoadAssetnoteWordlist should have comment or be unexported (golint)
    • Line 389: warning: exported function LoadAssetnoteWordlistKitebuilder should have comment or be unexported (golint)
    • Line 441: warning: exported function LoadKitebuilderFile should have comment or be unexported (golint)
    • Line 489: warning: exported function AddHeaders should have comment or be unexported (golint)
    • Line 502: warning: exported function AddHeader should have comment or be unexported (golint)
    • Line 513: warning: exported function FailStatusCodes should have comment or be unexported (golint)
    • Line 525: warning: exported function SuccessStatusCodes should have comment or be unexported (golint)
    • Line 537: warning: exported function BlacklistDomains should have comment or be unexported (golint)
    • Line 544: warning: exported function KitebuilderFullScan should have comment or be unexported (golint)
    • Line 551: warning: exported function WildcardDetection should have comment or be unexported (golint)
    • Line 558: warning: exported function ContentLengthIgnoreRanges should have comment or be unexported (golint)
    • Line 571: warning: exported function ContentLengthIgnoreRange should have comment or be unexported (golint)
    • Line 582: warning: exported function ProgressBarEnabled should have comment or be unexported (golint)
    • Line 589: warning: exported function QuarantineThreshold should have comment or be unexported (golint)
    • Line 596: warning: exported function PreflightDepth should have comment or be unexported (golint)
    • Line 603: warning: exported type ScanOption should have comment or be unexported (golint)
    • kiterunner/pkg/proute/proute.go
    • Line 1: warning: package comment should be of the form "Package proute ..." (golint)
    • Line 35: warning: exported function FromAPISlice should have comment or be unexported (golint)
    • Line 39: warning: exported method APIS.First should have comment or be unexported (golint)
    • Line 64: warning: exported method API.DebugPrint should have comment or be unexported (golint)
    • Line 90: warning: exported method API.QueryParams should have comment or be unexported (golint)
    • Line 100: warning: exported method API.CookieParams should have comment or be unexported (golint)
    • Line 110: warning: exported method API.BodyParams should have comment or be unexported (golint)
    • Line 120: warning: exported method API.Headers should have comment or be unexported (golint)
    • Line 130: warning: exported function NewAPI should have comment or be unexported (golint)
    • kiterunner/pkg/proute/slice.go
    • Line 12: warning: exported type PRouteOptions should have comment or be unexported (golint)
    • Line 21: warning: exported type PRouteOption should have comment or be unexported (golint)
    • Line 23: warning: exported function OptHeader should have comment or be unexported (golint)
    • Line 28: warning: exported function OptQuery should have comment or be unexported (golint)
    • Line 33: warning: exported function OptPath should have comment or be unexported (golint)
    • Line 38: warning: exported function OptBody should have comment or be unexported (golint)
    • Line 43: warning: exported function OptID should have comment or be unexported (golint)
    • Line 48: warning: exported function OptMethod should have comment or be unexported (golint)
    • Line 53: warning: exported function OptContentType should have comment or be unexported (golint)
    • Line 59: warning: exported function FromStringSliceReader should have comment or be unexported (golint)
    • Line 108: warning: exported method APIS.EncodeStringSlice should have comment or be unexported (golint)
    • kiterunner/internal/kitebuilder/parse.go
    • Line 19: warning: exported type ScanOptions should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDefaultScanOptions should have comment or be unexported (golint)
    • Line 27: warning: exported function Debug should have comment or be unexported (golint)
    • Line 33: warning: exported type ScanOption should have comment or be unexported (golint)
    • Line 35: warning: exported function ScanStdin should have comment or be unexported (golint)
    • Line 39: warning: exported function ScanFile should have comment or be unexported (golint)
    • Line 56: warning: exported function CompileFile should have comment or be unexported (golint)
    • Line 65: warning: exported function Compile should have comment or be unexported (golint)
    • Line 101: warning: exported function DebugPrintReader should have comment or be unexported (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 119: warning: exported function DebugPrintBytes should have comment or be unexported (golint)
    • Line 165: warning: exported function PrintBytes should have comment or be unexported (golint)
    • kiterunner/pkg/proute/kitebuilder.go
    • Line 330: warning: exported function FromKitebuilderAPIs should have comment or be unexported (golint)
    • Line 525: warning: exported method APIS.ToKiteBuilderAPIS should have comment or be unexported (golint)
    • Line 537: warning: exported function CrumbToSchema should have comment or be unexported (golint)
    • Line 592: warning: exported function CrumbToParameter should have comment or be unexported (golint)
    • Line 647: warning: exported function CrumbToSecurityDefinition should have comment or be unexported (golint)
    • Line 669: warning: exported method API.ToKitebuilderAPI should have comment or be unexported (golint)
    • kiterunner/pkg/kiterunner/config.go
    • Line 12: warning: exported type ProgressBar should have comment or be unexported (golint)
    • Line 17: warning: exported type NullProgressBar should have comment or be unexported (golint)
    • Line 22: warning: exported method NullProgressBar.Incr should have comment or be unexported (golint)
    • Line 26: warning: exported method NullProgressBar.AddTotal should have comment or be unexported (golint)
    • Line 32: warning: exported type Config should have comment or be unexported (golint)
    • Line 44: warning: exported function NewDefaultConfig should have comment or be unexported (golint)
    • Line 59: warning: exported type ErrBadConfig should have comment or be unexported (golint)
    • Line 67: warning: exported method Config.Validate should have comment or be unexported (golint)
    • Line 94: warning: exported type ConfigOption should have comment or be unexported (golint)
    • Line 96: warning: exported function MaxTimeout should have comment or be unexported (golint)
    • Line 102: warning: exported function Delay should have comment or be unexported (golint)
    • Line 108: warning: exported function MaxRedirects should have comment or be unexported (golint)
    • Line 114: warning: exported function MaxConnPerHost should have comment or be unexported (golint)
    • Line 120: warning: exported function MaxParallelHosts should have comment or be unexported (golint)
    • Line 126: warning: exported function ReadBody should have comment or be unexported (golint)
    • Line 132: warning: exported function ReadHeaders should have comment or be unexported (golint)
    • Line 138: warning: exported function BlacklistDomains should have comment or be unexported (golint)
    • Line 144: warning: exported function WildcardDetection should have comment or be unexported (golint)
    • Line 150: warning: exported function AddRequestFilter should have comment or be unexported (golint)
    • Line 167: warning: exported function AddProgressBar should have comment or be unexported (golint)
    • Line 173: warning: exported function TargetQuarantineThreshold should have comment or be unexported (golint)
    • Line 179: warning: exported function SetPreflightCheckRoutes should have comment or be unexported (golint)
    • Line 186: warning: exported function HTTPExtraHeaders should have comment or be unexported (golint)
    • kiterunner/internal/scan/parse.go
    • Line 19: warning: exported type ErrInvalidProtocol should have comment or be unexported (golint)
    • Line 28: warning: exported type FileLen should have comment or be unexported (golint)
    • Line 33: warning: exported function ParseFileWithLen should have comment or be unexported (golint)
    • kiterunner/internal/kitebuilder/convert.go
    • Line 19: warning: exported function ConvertFiles should have comment or be unexported (golint)
    • Line 55: warning: comment on exported type FileType should be of the form "FileType ..." (with optional leading article) (golint)
    • Line 59: warning: exported const UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported var ErrUnsupportedFileType should have comment or be unexported (golint)
    • Line 70: warning: exported function FileTypeFromExtension should have comment or be unexported (golint)
    • kiterunner/pkg/kitebuilder/schema.go
    • Line 7: warning: exported type Path should have comment or be unexported (golint)
    • Line 9: warning: exported type API should have comment or be unexported (golint)
    • Line 16: warning: exported type SecurityDefinition should have comment or be unexported (golint)
    • Line 22: warning: exported type OperationTypes should have comment or be unexported (golint)
    • Line 25: warning: exported var GET should have comment or be unexported (golint)
    • Line 38: warning: exported type ContentType should have comment or be unexported (golint)
    • Line 40: warning: exported type Operation should have comment or be unexported (golint)
    • Line 72: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 104: warning: exported method Parameter.GetType should have comment or be unexported (golint)
    • Line 105: warning: exported method Parameter.GetName should have comment or be unexported (golint)
    • Line 106: warning: exported method Parameter.GetIn should have comment or be unexported (golint)
    • Line 107: warning: exported method Parameter.GetExample should have comment or be unexported (golint)
    • Line 108: warning: exported method Parameter.GetMinimum should have comment or be unexported (golint)
    • Line 109: warning: exported method Parameter.GetMaximum should have comment or be unexported (golint)
    • Line 110: warning: exported method Parameter.GetDefault should have comment or be unexported (golint)
    • Line 111: warning: exported method Parameter.GetFormat should have comment or be unexported (golint)
    • Line 112: warning: exported method Parameter.GetPattern should have comment or be unexported (golint)
    • Line 113: warning: exported method Parameter.GetProperties should have comment or be unexported (golint)
    • Line 114: warning: exported method Parameter.GetSchema should have comment or be unexported (golint)
    • Line 115: warning: exported method Parameter.GetAdditionalProperties should have comment or be unexported (golint)
    • Line 116: warning: exported method Parameter.GetItems should have comment or be unexported (golint)
    • Line 117: warning: exported method Parameter.GetAllOf should have comment or be unexported (golint)
    • Line 119: warning: exported type Schema should have comment or be unexported (golint)
    • Line 172: warning: exported method Schema.GetType should have comment or be unexported (golint)
    • Line 173: warning: exported method Schema.GetName should have comment or be unexported (golint)
    • Line 174: warning: exported method Schema.GetIn should have comment or be unexported (golint)
    • Line 175: warning: exported method Schema.GetExample should have comment or be unexported (golint)
    • Line 176: warning: exported method Schema.GetMinimum should have comment or be unexported (golint)
    • Line 177: warning: exported method Schema.GetMaximum should have comment or be unexported (golint)
    • Line 178: warning: exported method Schema.GetDefault should have comment or be unexported (golint)
    • Line 179: warning: exported method Schema.GetFormat should have comment or be unexported (golint)
    • Line 180: warning: exported method Schema.GetPattern should have comment or be unexported (golint)
    • Line 181: warning: exported method Schema.GetProperties should have comment or be unexported (golint)
    • Line 182: warning: exported method Schema.GetSchema should have comment or be unexported (golint)
    • Line 183: warning: exported method Schema.GetAdditionalProperties should have comment or be unexported (golint)
    • Line 184: warning: exported method Schema.GetItems should have comment or be unexported (golint)
    • Line 185: warning: exported method Schema.GetAllOf should have comment or be unexported (golint)
    • Line 187: warning: exported method Schema.IsZero should have comment or be unexported (golint)
    • kiterunner/pkg/kiterunner/validator.go
    • Line 16: warning: exported type KnownBadSitesValidator should have comment or be unexported (golint)
    • Line 19: warning: exported var ErrGoogleBadRequest should have comment or be unexported (golint)
    • Line 23: warning: exported method KnownBadSitesValidator.Validate should have comment or be unexported (golint)
    • Line 85: warning: exported type WildcardResponseValidator should have comment or be unexported (golint)
    • Line 87: warning: exported method WildcardResponseValidator.Validate should have comment or be unexported (golint)
    • Line 154: warning: exported type ContentLengthValidator should have comment or be unexported (golint)
    • Line 158: warning: exported function NewContentLengthValidator should have comment or be unexported (golint)
    • Line 171: warning: exported method ContentLengthValidator.Validate should have comment or be unexported (golint)
    • Line 183: warning: exported type StatusCodeWhitelist should have comment or be unexported (golint)
    • Line 187: warning: exported function NewStatusCodeWhitelist should have comment or be unexported (golint)
    • Line 205: warning: exported method StatusCodeWhitelist.Validate should have comment or be unexported (golint)
    • Line 219: warning: exported type StatusCodeBlacklist should have comment or be unexported (golint)
    • Line 223: warning: exported function NewStatusCodeBlacklist should have comment or be unexported (golint)
    • Line 241: warning: exported method StatusCodeBlacklist.Validate should have comment or be unexported (golint)
    • kiterunner/internal/scan/progress.go
    • Line 12: warning: exported type ProgressBar should have comment or be unexported (golint)
    • Line 17: warning: exported function NewProgress should have comment or be unexported (golint)
    • Line 40: warning: exported method ProgressBar.Incr should have comment or be unexported (golint)
    • Line 44: warning: exported method ProgressBar.AddTotal should have comment or be unexported (golint)
    • kiterunner/pkg/proute/crumb.go
    • Line 21: warning: exported const DefaultFormDataBoundary should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var AllCrumbs should have comment or be unexported (golint)
    • Line 56: warning: exported type CrumbOption should have comment or be unexported (golint)
    • Line 58: warning: exported function DefaultCrumbOptions should have comment or be unexported (golint)
    • Line 65: warning: exported function NewCrumbOptions should have comment or be unexported (golint)
    • Line 73: warning: exported function CrumbOptContentType should have comment or be unexported (golint)
    • Line 79: warning: exported function CrumbOptFormDataBoundary should have comment or be unexported (golint)
    • Line 85: warning: exported function CrumbOptIsChild should have comment or be unexported (golint)
    • Line 91: warning: exported method UUIDCrumb.Key should have comment or be unexported (golint)
    • Line 95: warning: exported method UUIDCrumb.Value should have comment or be unexported (golint)
    • Line 99: warning: exported method UUIDCrumb.RawValue should have comment or be unexported (golint)
    • Line 107: warning: exported method StaticCrumb.Key should have comment or be unexported (golint)
    • Line 111: warning: exported method StaticCrumb.Value should have comment or be unexported (golint)
    • Line 115: warning: exported method StaticCrumb.RawValue should have comment or be unexported (golint)
    • Line 119: warning: receiver name p should be consistent with previous receiver name s for StaticCrumb (golint)
    • Line 123: warning: exported method IntCrumb.Value should have comment or be unexported (golint)
    • Line 127: warning: exported method IntCrumb.Key should have comment or be unexported (golint)
    • Line 131: warning: exported method IntCrumb.RawValue should have comment or be unexported (golint)
    • Line 146: warning: receiver name p should be consistent with previous receiver name i for IntCrumb (golint)
    • Line 150: warning: exported method BoolCrumb.Value should have comment or be unexported (golint)
    • Line 154: warning: exported method BoolCrumb.Key should have comment or be unexported (golint)
    • Line 158: warning: exported method BoolCrumb.RawValue should have comment or be unexported (golint)
    • Line 165: warning: receiver name p should be consistent with previous receiver name b for BoolCrumb (golint)
    • Line 169: warning: exported method FloatCrumb.Value should have comment or be unexported (golint)
    • Line 173: warning: exported method FloatCrumb.Key should have comment or be unexported (golint)
    • Line 177: warning: exported method FloatCrumb.RawValue should have comment or be unexported (golint)
    • Line 184: warning: receiver name p should be consistent with previous receiver name i for FloatCrumb (golint)
    • Line 188: warning: exported method RandomStringCrumb.Key should have comment or be unexported (golint)
    • Line 192: warning: comment on exported method RandomStringCrumb.Value should be of the form "Value ..." (golint)
    • Line 203: warning: exported method RandomStringCrumb.RawValue should have comment or be unexported (golint)
    • Line 207: warning: receiver name p should be consistent with previous receiver name s for RandomStringCrumb (golint)
    • Line 211: warning: exported method RegexStringCrumb.Validate should have comment or be unexported (golint)
    • Line 216: warning: exported method RegexStringCrumb.Value should have comment or be unexported (golint)
    • Line 225: warning: exported method RegexStringCrumb.RawValue should have comment or be unexported (golint)
    • Line 229: warning: exported method RegexStringCrumb.Key should have comment or be unexported (golint)
    • Line 233: warning: receiver name p should be consistent with previous receiver name r for RegexStringCrumb (golint)
    • Line 237: warning: exported method BasicAuthCrumb.Value should have comment or be unexported (golint)
    • Line 255: warning: exported method BasicAuthCrumb.RawValue should have comment or be unexported (golint)
    • Line 259: warning: exported method BasicAuthCrumb.Key should have comment or be unexported (golint)
    • Line 263: warning: receiver name p should be consistent with previous receiver name b for BasicAuthCrumb (golint)
    • Line 285: warning: exported type XMLer should have comment or be unexported (golint)
    • Line 291: warning: exported type ObjectCrumb should have comment or be unexported (golint)
    • Line 327: warning: exported method ObjectCrumb.Value should have comment or be unexported (golint)
    • Line 392: warning: exported method ObjectCrumb.Key should have comment or be unexported (golint)
    • Line 396: warning: exported method ObjectCrumb.RawValue should have comment or be unexported (golint)
    • Line 400: warning: exported method ObjectCrumb.MarshalJSONObject should have comment or be unexported (golint)
    • Line 406: warning: exported method ObjectCrumb.IsNil should have comment or be unexported (golint)
    • Line 410: warning: receiver name p should be consistent with previous receiver name o for ObjectCrumb (golint)
    • Line 414: warning: receiver name p should be consistent with previous receiver name o for ObjectCrumb (golint)
    • Line 421: warning: exported type ArrayCrumb should have comment or be unexported (golint)
    • Line 426: warning: exported method ArrayCrumb.Value should have comment or be unexported (golint)
    • Line 505: warning: exported method ArrayCrumb.RawValue should have comment or be unexported (golint)
    • Line 509: warning: exported method ArrayCrumb.Key should have comment or be unexported (golint)
    • Line 513: warning: exported method ArrayCrumb.MarshalJSONArray should have comment or be unexported (golint)
    • Line 520: warning: exported method ArrayCrumb.IsNil should have comment or be unexported (golint)
    • Line 524: warning: receiver name p should be consistent with previous receiver name a for ArrayCrumb (golint)
    • Line 528: warning: receiver name p should be consistent with previous receiver name a for ArrayCrumb (golint)
    • Line 535: warning: exported type StringCrumbCrumb should have comment or be unexported (golint)
    • Line 540: warning: exported method StringCrumbCrumb.Value should have comment or be unexported (golint)
    • Line 550: warning: exported method StringCrumbCrumb.Key should have comment or be unexported (golint)
    • Line 554: warning: exported method StringCrumbCrumb.RawValue should have comment or be unexported (golint)
    • Line 558: warning: receiver name p should be consistent with previous receiver name s for StringCrumbCrumb (golint)
    • Line 562: warning: receiver name p should be consistent with previous receiver name s for StringCrumbCrumb (golint)
    • kiterunner/pkg/proute/proute.pbext.go
    • Line 3: warning: exported method ProtoCrumb_UuidCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 4: warning: exported method ProtoCrumb_StaticCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 5: warning: exported method ProtoCrumb_IntCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 6: warning: exported method ProtoCrumb_BoolCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 7: warning: exported method ProtoCrumb_FloatCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 8: warning: exported method ProtoCrumb_RandomStringCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 9: warning: exported method ProtoCrumb_RegexStringCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 10: warning: exported method ProtoCrumb_BasicAuthCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 11: warning: exported method ProtoCrumb_ArrayCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 12: warning: exported method ProtoCrumb_ObjectCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 13: warning: exported method ProtoCrumb_StringCrumbCrumb.UnwrapCrumb should have comment or be unexported (golint)
    • Line 15: warning: exported method ProtoCrumb_ArrayCrumb.ProuteCrumb should have comment or be unexported (golint)
    • Line 25: warning: exported method ProtoCrumb_ObjectCrumb.ProuteCrumb should have comment or be unexported (golint)
    • Line 35: warning: exported method ProtoCrumb_StringCrumbCrumb.ProuteCrumb should have comment or be unexported (golint)
    • Line 45: warning: exported type UnwrapCrumber should have comment or be unexported (golint)
    • Line 49: warning: exported function FromCrumbs should have comment or be unexported (golint)
    • Line 56: warning: exported method ProtoCrumb.GetRawCrumb should have comment or be unexported (golint)
    • Line 64: warning: exported function FromProtoCrumbs should have comment or be unexported (golint)
    • Line 71: warning: exported method ProtoRoute.Route should have comment or be unexported (golint)
    • Line 83: warning: exported method Route.ProtoRoute should have comment or be unexported (golint)
    • Line 95: warning: exported function FromProtoRoutes should have comment or be unexported (golint)
    • Line 102: warning: exported function FromRoutes should have comment or be unexported (golint)
    • Line 109: warning: exported method ProtoAPI.API should have comment or be unexported (golint)
    • Line 121: warning: exported method API.ProtoAPI should have comment or be unexported (golint)
    • Line 133: warning: exported method ProtoAPIS.APIS should have comment or be unexported (golint)
    • kiterunner/internal/art/art.go
    • Line 10: warning: comment on exported var MajesticArtB64 should be of the form "MajesticArtB64 ..." (golint)
    • Line 15: warning: exported function GetArtBytes should have comment or be unexported (golint)
    • Line 26: warning: exported function WriteArtBytes should have comment or be unexported (golint)
    • Line 30: warning: exported function PrintArt should have comment or be unexported (golint)
    • kiterunner/pkg/log/log.go
    • Line 10: warning: exported type LogFormat should have comment or be unexported (golint)
    • Line 13: warning: exported var Pretty should have comment or be unexported (golint)
    • Line 21: warning: comment on exported var Stdout should be of the form "Stdout ..." (golint)
    • Line 26: warning: exported var Print should have comment or be unexported (golint)
    • Line 46: warning: exported const FatalLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported function SetLevelString should have comment or be unexported (golint)
    • Line 67: warning: exported var ErrUnsupportedFormat should have comment or be unexported (golint)
    • Line 70: warning: exported function GetLogFormat should have comment or be unexported (golint)
    • Line 74: warning: exported function SetFormat should have comment or be unexported (golint)
    • kiterunner/cmd/testServer/main.go
    • Line 37: warning: exported function PreRequest should have comment or be unexported (golint)
    • Line 42: warning: exported function Index should have comment or be unexported (golint)
    • Line 48: warning: exported function ASDFResponder should have comment or be unexported (golint)
    • Line 54: warning: exported function Hello should have comment or be unexported (golint)
    • Line 60: warning: exported function WildcardResponder should have comment or be unexported (golint)
    • Line 68: warning: exported function RedirectResponder should have comment or be unexported (golint)
    • Line 76: warning: exported function UserWildcardResponder should have comment or be unexported (golint)
    • Line 92: warning: exported function APIWildcardResponder should have comment or be unexported (golint)
    • Line 98: warning: exported function StatsFunc should have comment or be unexported (golint)
    • kiterunner/pkg/http/route.go
    • Line 11: warning: exported type Method should have comment or be unexported (golint)
    • Line 14: warning: exported var GET should have comment or be unexported (golint)
    • Line 24: warning: exported function MethodFromString should have comment or be unexported (golint)
    • Line 46: warning: exported type ChunkedRoutes should have comment or be unexported (golint)
    • Line 49: warning: exported var ChunkedRoutesPool should have comment or be unexported (golint)
    • Line 52: warning: comment on exported function AcquireChunkedRoutes should be of the form "AcquireChunkedRoutes ..." (golint)
    • Line 62: warning: comment on exported function ReleaseChunkedRoutes should be of the form "ReleaseChunkedRoutes ..." (golint)
    • Line 68: warning: exported function ChunkRoutes should have comment or be unexported (golint)
    • Line 78: warning: exported type Route should have comment or be unexported (golint)
    • Line 91: warning: exported method Route.MarshalZerologObject should have comment or be unexported (golint)
    • Line 98: warning: exported method Route.AppendShortBytes should have comment or be unexported (golint)
    • Line 105: warning: exported method Route.AppendBytes should have comment or be unexported (golint)
    • Line 125: warning: exported method Route.AppendPath should have comment or be unexported (golint)
    • Line 131: warning: exported method Route.AppendQuery should have comment or be unexported (golint)
    • kiterunner/pkg/http/field.go
    • Line 7: warning: exported type HeaderField should have comment or be unexported (golint)
    • Line 12: warning: exported type FieldType should have comment or be unexported (golint)
    • Line 14: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Field should have comment or be unexported (golint)
    • Line 27: warning: exported method Field.Bytes should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function StringToFields should be of the form "StringToFields ..." (golint)
    • Line 43: warning: comment on exported method Field.AppendBytes should be of the form "AppendBytes ..." (golint)
    • kiterunner/pkg/http/header.go
    • Line 18: warning: exported type Headers should have comment or be unexported (golint)
    • Line 20: warning: exported method Headers.MarshalZerologArray should have comment or be unexported (golint)
    • Line 26: warning: exported method Header.MarshalZerologObject should have comment or be unexported (golint)
    • Line 31: warning: exported method Header.AppendBytes should have comment or be unexported (golint)

gocyclo88%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • kiterunner/pkg/proute/kitebuilder.go
    • Line 61: warning: cyclomatic complexity 68 of function objectCrumbFromSchema() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 37 of function FromKitebuilderAPI() is high (> 15) (gocyclo)
    • Line 537: warning: cyclomatic complexity 18 of function CrumbToSchema() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 17 of function CrumbToParameter() is high (> 15) (gocyclo)
    • kiterunner/pkg/proute/crumb.go
    • Line 327: warning: cyclomatic complexity 16 of function (ObjectCrumb).Value() is high (> 15) (gocyclo)
    • Line 426: warning: cyclomatic complexity 16 of function (ArrayCrumb).Value() is high (> 15) (gocyclo)

ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • kiterunner/pkg/http/target.go
    • Line 264: warning: ineffectual assignment to err (ineffassign)
    • Line 267: warning: ineffectual assignment to err (ineffassign)
    • Line 270: warning: ineffectual assignment to err (ineffassign)
    • Line 272: warning: ineffectual assignment to err (ineffassign)
    • Line 274: warning: ineffectual assignment to err (ineffassign)
    • Line 280: warning: ineffectual assignment to err (ineffassign)
    • Line 283: warning: ineffectual assignment to err (ineffassign)
    • Line 285: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words