Preparing report...

Report for github.com/cheikhshift/gos

C    Needs some work    Found 8 issues across 8 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!


golint12%

Golint is a linter for Go source code.

    • gos/onyx/http.go
    • Line 10: warning: comment on exported function NewRequest should be of the form "NewRequest ..." (golint)
    • Line 18: warning: comment on exported function NewRequestWithBody should be of the form "NewRequestWithBody ..." (golint)
    • Line 27: warning: comment on exported function Header should be of the form "Header ..." (golint)
    • Line 32: warning: comment on exported function Handle should be of the form "Handle ..." (golint)
    • gos/onyx/templates.go
    • Line 8: warning: comment on exported function EqualToFile should be of the form "EqualToFile ..." (golint)
    • Line 27: warning: comment on exported function DetectPanic should be of the form "DetectPanic ..." (golint)
    • gos/web/util.go
    • Line 17: warning: exported type CacheStore should have comment or be unexported (golint)
    • Line 22: warning: exported type ByteStore should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCache should have comment or be unexported (golint)
    • Line 31: warning: exported function NewBS should have comment or be unexported (golint)
    • Line 35: warning: exported method CacheStore.Put should have comment or be unexported (golint)
    • Line 42: warning: exported method CacheStore.Get should have comment or be unexported (golint)
    • Line 52: warning: exported type TemplateCacheStore should have comment or be unexported (golint)
    • Line 57: warning: exported function CacheFile should have comment or be unexported (golint)
    • Line 67: warning: exported function NewTemplateCache should have comment or be unexported (golint)
    • Line 71: warning: exported method TemplateCacheStore.Put should have comment or be unexported (golint)
    • Line 77: warning: exported method TemplateCacheStore.Get should have comment or be unexported (golint)
    • Line 86: warning: exported method ByteStore.Put should have comment or be unexported (golint)
    • Line 93: warning: exported method ByteStore.Get should have comment or be unexported (golint)
    • Line 102: warning: exported method TemplateCacheStore.JGet should have comment or be unexported (golint)
    • Line 111: warning: exported var TemplateFuncStore should have comment or be unexported (golint)
    • Line 113: warning: exported function Netadd should have comment or be unexported (golint)
    • Line 117: warning: exported function Netsubs should have comment or be unexported (golint)
    • Line 121: warning: exported function Netmultiply should have comment or be unexported (golint)
    • Line 125: warning: exported function Netdivided should have comment or be unexported (golint)
    • Line 129: warning: exported type NoStruct should have comment or be unexported (golint)
    • Line 133: warning: exported function NetsessionGet should have comment or be unexported (golint)
    • Line 137: warning: exported function UrlAtZ should have comment or be unexported (golint)
    • Line 142: warning: exported function NetsessionDelete should have comment or be unexported (golint)
    • Line 155: warning: exported function NetsessionRemove should have comment or be unexported (golint)
    • Line 159: warning: exported function NetsessionKey should have comment or be unexported (golint)
    • Line 168: warning: exported function NetsessionGetInt should have comment or be unexported (golint)
    • Line 172: warning: exported function NetsessionSet should have comment or be unexported (golint)
    • Line 176: warning: exported function NetsessionSetInt should have comment or be unexported (golint)
    • Line 181: warning: exported function Netimportcss should have comment or be unexported (golint)
    • Line 185: warning: exported function Netimportjs should have comment or be unexported (golint)
    • Line 189: warning: exported function Formval should have comment or be unexported (golint)
    • Line 193: warning: exported function Equalz should have comment or be unexported (golint)
    • Line 199: warning: exported function Nequalz should have comment or be unexported (golint)
    • Line 206: warning: exported function Netlt should have comment or be unexported (golint)
    • Line 212: warning: exported function Netgt should have comment or be unexported (golint)
    • Line 218: warning: exported function Netlte should have comment or be unexported (golint)
    • Line 225: warning: exported function GetLine should have comment or be unexported (golint)
    • Line 246: warning: exported function Netgte should have comment or be unexported (golint)
    • Line 253: warning: exported type Page should have comment or be unexported (golint)
    • gos/gos-test/application.go
    • Line 28: warning: exported type NoStruct should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; func net_sessionGet should be netSessionGet (golint)
    • Line 36: warning: exported function UrlAtZ should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; func net_sessionDelete should be netSessionDelete (golint)
    • Line 54: warning: don't use underscores in Go names; func net_sessionRemove should be netSessionRemove (golint)
    • Line 58: warning: don't use underscores in Go names; func net_sessionKey should be netSessionKey (golint)
    • Line 67: warning: don't use underscores in Go names; func net_add should be netAdd (golint)
    • Line 71: warning: don't use underscores in Go names; func net_subs should be netSubs (golint)
    • Line 75: warning: don't use underscores in Go names; func net_multiply should be netMultiply (golint)
    • Line 79: warning: don't use underscores in Go names; func net_divided should be netDivided (golint)
    • Line 83: warning: don't use underscores in Go names; func net_sessionGetInt should be netSessionGetInt (golint)
    • Line 87: warning: don't use underscores in Go names; func net_sessionSet should be netSessionSet (golint)
    • Line 91: warning: don't use underscores in Go names; func net_sessionSetInt should be netSessionSetInt (golint)
    • Line 102: warning: don't use underscores in Go names; func net_importcss should be netImportcss (golint)
    • Line 106: warning: don't use underscores in Go names; func net_importjs should be netImportjs (golint)
    • Line 176: warning: exported function MakeHandler should have comment or be unexported (golint)
    • Line 213: warning: exported function SetField should have comment or be unexported (golint)
    • Line 235: warning: exported function DebugTemplate should have comment or be unexported (golint)
    • Line 346: warning: exported function DebugTemplatePath should have comment or be unexported (golint)
    • Line 451: warning: exported function Handler should have comment or be unexported (golint)
    • Line 534: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 549: warning: exported function BytesToString should have comment or be unexported (golint)
    • Line 586: warning: exported function GetLine should have comment or be unexported (golint)
    • Line 614: warning: exported type Page should have comment or be unexported (golint)
    • Line 623: warning: exported function ReadyTemplate should have comment or be unexported (golint)
    • Line 627: warning: don't use underscores in Go names; func dummy_timer should be dummyTimer (golint)
    • gos/gos.go
    • Line 22: warning: don't use underscores in Go names; var gos_root should be gosRoot (golint)
    • Line 24: warning: exported var GOHOME should have comment or be unexported (golint)
    • Line 26: warning: exported var Type should have comment or be unexported (golint)
    • Line 28: warning: exported function LowerInitial should have comment or be unexported (golint)
    • Line 36: warning: exported function UpperInitial should have comment or be unexported (golint)
    • Line 544: warning: exported function GetLine should have comment or be unexported (golint)
    • Line 566: warning: exported function VmdOne should have comment or be unexported (golint)
    • Line 569: warning: don't use underscores in Go names; var args_c should be argsC (golint)
    • Line 570: warning: don't use underscores in Go names; var cmd_set should be cmdSet (golint)
    • Line 606: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 631: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 659: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 741: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 755: warning: exported function Vmd should have comment or be unexported (golint)
    • Line 758: warning: don't use underscores in Go names; var args_c should be argsC (golint)
    • Line 762: warning: don't use underscores in Go names; var cmd_set should be cmdSet (golint)
    • Line 798: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 823: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 851: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 933: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 948: warning: exported function VmT should have comment or be unexported (golint)
    • Line 955: warning: don't use underscores in Go names; var cmd_set should be cmdSet (golint)
    • Line 1033: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1054: warning: exported function VmP should have comment or be unexported (golint)
    • Line 1057: warning: don't use underscores in Go names; var args_c should be argsC (golint)
    • Line 1061: warning: don't use underscores in Go names; var cmd_set should be cmdSet (golint)
    • Line 1106: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1139: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1175: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1256: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1271: warning: exported function VmPOne should have comment or be unexported (golint)
    • Line 1274: warning: don't use underscores in Go names; var args_c should be argsC (golint)
    • Line 1276: warning: don't use underscores in Go names; var cmd_set should be cmdSet (golint)
    • Line 1321: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1354: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1390: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1471: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1485: warning: exported function WatchForUpdate should have comment or be unexported (golint)
    • Line 1528: warning: exported function TriggerType should have comment or be unexported (golint)
    • Line 1533: warning: exported function JBuild should have comment or be unexported (golint)
    • Line 1552: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1560: warning: don't use underscores in Go names; var line_part should be linePart (golint)
    • Line 1564: warning: don't use underscores in Go names; var line_part should be linePart (golint)
    • Line 1582: warning: don't use underscores in Go names; var acT_line should be acTLine (golint)
    • Line 1696: warning: exported function Build should have comment or be unexported (golint)
    • Line 1776: warning: don't use underscores in Go names; var log_build should be logBuild (golint)
    • Line 1784: warning: don't use underscores in Go names; var line_part should be linePart (golint)
    • Line 1788: warning: don't use underscores in Go names; var line_part should be linePart (golint)
    • Line 1807: warning: don't use underscores in Go names; var acT_line should be acTLine (golint)
    • gos/core/core.go
    • Line 61: warning: don't use underscores in Go names; struct field Template_path should be TemplatePath (golint)
    • Line 62: warning: don't use underscores in Go names; struct field Web_root should be WebRoot (golint)
    • Line 67: warning: don't use underscores in Go names; struct field Init_Func should be InitFunc (golint)
    • Line 84: warning: exported type Pgos should have comment or be unexported (golint)
    • Line 88: warning: exported type GlobalVariables should have comment or be unexported (golint)
    • Line 95: warning: exported type Import should have comment or be unexported (golint)
    • Line 100: warning: exported type Header should have comment or be unexported (golint)
    • Line 106: warning: exported type Methods should have comment or be unexported (golint)
    • Line 111: warning: exported type Timers should have comment or be unexported (golint)
    • Line 116: warning: exported type Templates should have comment or be unexported (golint)
    • Line 121: warning: comment on exported type Endpoints should be of the form "Endpoints ..." (with optional leading article) (golint)
    • Line 132: warning: exported type VGos should have comment or be unexported (golint)
    • Line 139: warning: exported type Struct should have comment or be unexported (golint)
    • Line 145: warning: exported type Object should have comment or be unexported (golint)
    • Line 152: warning: exported type Method should have comment or be unexported (golint)
    • Line 168: warning: exported type Timer should have comment or be unexported (golint)
    • Line 176: warning: exported type Template should have comment or be unexported (golint)
    • Line 191: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 207: warning: exported type Package should have comment or be unexported (golint)
    • gos/core/core_api.go
    • Line 28: warning: exported const StdLen should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported var GOHOME should have comment or be unexported (golint)
    • Line 61: warning: don't use underscores in Go names; var available_methods should be availableMethods (golint)
    • Line 62: warning: don't use underscores in Go names; var int_methods should be intMethods (golint)
    • Line 63: warning: don't use underscores in Go names; var api_methods should be apiMethods (golint)
    • Line 64: warning: don't use underscores in Go names; var int_mappings should be intMappings (golint)
    • Line 65: warning: exported var StdChars should have comment or be unexported (golint)
    • Line 66: warning: exported var StdNums should have comment or be unexported (golint)
    • Line 67: warning: exported var DAMP should have comment or be unexported (golint)
    • Line 68: warning: exported var AMP should have comment or be unexported (golint)
    • Line 70: warning: exported function RemoveContents should have comment or be unexported (golint)
    • Line 91: warning: exported function IsInImports should have comment or be unexported (golint)
    • Line 114: warning: exported function IsInSlice should have comment or be unexported (golint)
    • Line 123: warning: exported function DoSpin should have comment or be unexported (golint)
    • Line 151: warning: exported function ReadLines should have comment or be unexported (golint)
    • Line 166: warning: exported function CheckFile should have comment or be unexported (golint)
    • Line 202: warning: exported function CopyFile should have comment or be unexported (golint)
    • Line 225: warning: comment on exported function CopyDir should be of the form "CopyDir ..." (golint)
    • Line 279: warning: comment on exported type CustomError should be of the form "CustomError ..." (with optional leading article) (golint)
    • Line 289: warning: exported function NewLen should have comment or be unexported (golint)
    • Line 293: warning: exported function TrimSuffix should have comment or be unexported (golint)
    • Line 300: warning: comment on exported function Config should be of the form "Config ..." (golint)
    • Line 305: warning: receiver name template should be consistent with previous receiver name d for gos (golint)
    • Line 320: warning: exported function NewID should have comment or be unexported (golint)
    • Line 357: warning: exported function GetEndpointComment should have comment or be unexported (golint)
    • Line 373: warning: exported function GetTemplateComment should have comment or be unexported (golint)
    • Line 387: warning: exported function Process should have comment or be unexported (golint)
    • Line 387: warning: don't use underscores in Go names; func result local_string should be localString (golint)
    • Line 946: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 949: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 953: warning: don't use underscores in Go names; var structs_string should be structsString (golint)
    • Line 953: warning: don't use underscores in Go names; var struct_funcs should be structFuncs (golint)
    • Line 979: warning: don't use underscores in Go names; var structs_string should be structsString (golint)
    • Line 981: warning: don't use underscores in Go names; var structs_string should be structsString (golint)
    • Line 982: warning: don't use underscores in Go names; var structs_string should be structsString (golint)
    • Line 984: warning: don't use underscores in Go names; var struct_funcs should be structFuncs (golint)
    • Line 1054: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 1109: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2138: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2278: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2290: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2314: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2373: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2393: warning: don't use underscores in Go names; var local_string should be localString (golint)
    • Line 2690: warning: exported function ReplaceLegacy should have comment or be unexported (golint)
    • Line 2694: warning: exported function RunFile should have comment or be unexported (golint)
    • Line 2699: warning: exported function RunCmd should have comment or be unexported (golint)
    • Line 2703: warning: exported function RunCmdString should have comment or be unexported (golint)
    • Line 2732: warning: exported function RunCmdByte should have comment or be unexported (golint)
    • Line 2761: warning: exported function RunCmdSmartB should have comment or be unexported (golint)
    • Line 2783: warning: exported function RunCmdSmart should have comment or be unexported (golint)
    • Line 2807: warning: exported function RunCmdSmarttwo should have comment or be unexported (golint)
    • Line 2827: warning: exported function RunCmdSmartZ should have comment or be unexported (golint)
    • Line 2847: warning: exported function RunCmdSmartP should have comment or be unexported (golint)
    • Line 2867: warning: exported function RunCmdSmartCmb should have comment or be unexported (golint)
    • Line 2882: warning: exported function BytesToString should have comment or be unexported (golint)
    • Line 2886: warning: exported function RunCmdB should have comment or be unexported (golint)
    • Line 2919: warning: exported function RunCmdA should have comment or be unexported (golint)
    • Line 2944: warning: don't use underscores in Go names; func exe_cmd should be exeCmd (golint)
    • Line 2972: warning: exported function Exe_Stall should have comment or be unexported (golint)
    • Line 2972: warning: don't use underscores in Go names; func Exe_Stall should be ExeStall (golint)
    • Line 3003: warning: exported function Exe_Stalll should have comment or be unexported (golint)
    • Line 3003: warning: don't use underscores in Go names; func Exe_Stalll should be ExeStalll (golint)
    • Line 3034: warning: exported function Exe_BG should have comment or be unexported (golint)
    • Line 3034: warning: don't use underscores in Go names; func Exe_BG should be ExeBG (golint)
    • Line 3154: warning: exported function CreateVGos should have comment or be unexported (golint)
    • Line 3186: warning: exported function PLoadGos should have comment or be unexported (golint)
    • Line 3237: warning: exported function Decode64 should have comment or be unexported (golint)
    • Line 3339: warning: exported function VLoadGos should have comment or be unexported (golint)
    • Line 3412: warning: exported function EscpaseGXML should have comment or be unexported (golint)
    • Line 3422: warning: exported function LoadGos should have comment or be unexported (golint)
    • Line 3662: warning: exported function DoubleInput should have comment or be unexported (golint)
    • Line 3670: warning: exported function AskForConfirmation should have comment or be unexported (golint)

gocyclo62%

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.

    • gos/gos-test/application.go
    • Line 346: warning: cyclomatic complexity 43 of function DebugTemplatePath() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 40 of function DebugTemplate() is high (> 15) (gocyclo)
    • gos/core/core_api.go
    • Line 387: warning: cyclomatic complexity 107 of function Process() is high (> 15) (gocyclo)
    • Line 3095: warning: cyclomatic complexity 19 of function (*gos).Delete() is high (> 15) (gocyclo)
    • Line 3549: warning: cyclomatic complexity 17 of function (*gos).MergeWith() is high (> 15) (gocyclo)
    • Line 3263: warning: cyclomatic complexity 16 of function (*gos).Update() is high (> 15) (gocyclo)
    • gos/gos.go
    • Line 1696: warning: cyclomatic complexity 67 of function Build() is high (> 15) (gocyclo)
    • Line 1533: warning: cyclomatic complexity 26 of function JBuild() is high (> 15) (gocyclo)

ineffassign62%

IneffAssign detects ineffectual assignments in Go code.

    • gos/core/core_api.go
    • Line 472: warning: ineffectual assignment to wd (ineffassign)
    • Line 474: warning: ineffectual assignment to wd (ineffassign)
    • Line 630: warning: ineffectual assignment to est (ineffassign)
    • Line 734: warning: ineffectual assignment to est (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!