Preparing report...

Report for github.com/thestrukture/IDE

A    Great!    Found 103 issues across 110 files

Tweet

gofmt96%

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!


gocyclo92%

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.

    • IDE/launcher.go
    • Line 20: warning: cyclomatic complexity 19 of function LaunchServer() is high (> 15) (gocyclo)
    • IDE/api/templates/logger.go
    • Line 135: warning: cyclomatic complexity 43 of function DebugTemplatePath() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 40 of function DebugTemplate() is high (> 15) (gocyclo)

golint6%

Golint is a linter for Go source code.

    • IDE/api/methods/method_IsExpired.go
    • Line 1: warning: package comment should be of the form "Package methods ..." (golint)
    • Line 7: warning: comment on exported function IsExpired should be of the form "IsExpired ..." (golint)
    • Line 15: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • IDE/launcher.go
    • Line 20: warning: exported function LaunchServer should have comment or be unexported (golint)
    • IDE/api/templates/templates.go
    • Line 1: warning: package comment should be of the form "Package templates ..." (golint)
    • Line 17: warning: exported var TemplateFuncStore should have comment or be unexported (golint)
    • Line 20: warning: exported var WebCache should have comment or be unexported (golint)
    • Line 22: warning: exported function StoreNetfn should have comment or be unexported (golint)
    • Line 28: warning: exported var FuncStored should have comment or be unexported (golint)
    • Line 30: warning: comment on exported function LoadPage should be of the form "LoadPage ..." (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • IDE/api/templates/logger.go
    • Line 1: warning: package comment should be of the form "Package templates ..." (golint)
    • Line 17: warning: exported var Prod should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function DebugTemplate should be of the form "DebugTemplate ..." (golint)
    • Line 132: warning: comment on exported function DebugTemplatePath should be of the form "DebugTemplatePath ..." (golint)
    • IDE/types/structs.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 7: warning: exported type FSCs should have comment or be unexported (golint)
    • Line 12: warning: exported type Dex should have comment or be unexported (golint)
    • Line 17: warning: exported type SoftUser should have comment or be unexported (golint)
    • Line 26: warning: exported type USettings should have comment or be unexported (golint)
    • Line 31: warning: exported type App should have comment or be unexported (golint)
    • Line 40: warning: exported type TemplateEdits should have comment or be unexported (golint)
    • Line 45: warning: exported type WebRootEdits should have comment or be unexported (golint)
    • Line 51: warning: exported type TEditor should have comment or be unexported (golint)
    • Line 55: warning: exported type Navbars should have comment or be unexported (golint)
    • Line 59: warning: exported type SModal should have comment or be unexported (golint)
    • Line 66: warning: exported type Forms should have comment or be unexported (golint)
    • Line 73: warning: exported type SButton should have comment or be unexported (golint)
    • Line 78: warning: exported type STab should have comment or be unexported (golint)
    • Line 81: warning: exported type DForm should have comment or be unexported (golint)
    • Line 84: warning: exported type Alertbs should have comment or be unexported (golint)
    • Line 89: warning: exported type Inputs should have comment or be unexported (golint)
    • Line 97: warning: exported type Aput should have comment or be unexported (golint)
    • Line 100: warning: exported type RPut should have comment or be unexported (golint)
    • Line 107: warning: exported type SSWAL should have comment or be unexported (golint)
    • Line 110: warning: exported type SPackageEdit should have comment or be unexported (golint)
    • Line 121: warning: exported type DebugObj should have comment or be unexported (golint)
    • Line 125: warning: exported type DebugNode should have comment or be unexported (golint)
    • Line 128: warning: exported type PkgItem should have comment or be unexported (golint)
    • Line 144: warning: exported type SROC should have comment or be unexported (golint)
    • Line 150: warning: exported type VHuf should have comment or be unexported (golint)
    • IDE/api/handlers/html.go
    • Line 1: warning: package comment should be of the form "Package handlers ..." (golint)
    • Line 17: warning: comment on exported function MakeHandler should be of the form "MakeHandler ..." (golint)
    • Line 31: warning: exported function Handler should have comment or be unexported (golint)
    • IDE/api/methods/method_UpdateApp.go
    • Line 1: warning: package comment should be of the form "Package methods ..." (golint)
    • Line 11: warning: comment on exported function UpdateApp should be of the form "UpdateApp ..." (golint)
    • Line 20: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • IDE/api/methods/method_GetApp.go
    • Line 1: warning: package comment should be of the form "Package methods ..." (golint)
    • Line 11: warning: comment on exported function GetApp should be of the form "GetApp ..." (golint)
    • Line 18: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • IDE/api/handlers/endpoints.go
    • Line 1: warning: package comment should be of the form "Package handlers ..." (golint)
    • Line 16: warning: exported var WebCache should have comment or be unexported (golint)
    • Line 23: warning: exported function ApiAttempt should have comment or be unexported (golint)
    • IDE/api/globals/variables.go
    • Line 1: warning: package comment should be of the form "Package globals ..." (golint)
    • Line 7: warning: exported var Windows should have comment or be unexported (golint)
    • Line 8: warning: exported var AutocompletePath should have comment or be unexported (golint)
    • Line 9: warning: exported var Upgrader should have comment or be unexported (golint)
    • Line 10: warning: exported var PortCount should have comment or be unexported (golint)
    • Line 11: warning: exported var Dfd should have comment or be unexported (golint)
    • IDE/api/methods/method_GetTemplate.go
    • Line 1: warning: package comment should be of the form "Package methods ..." (golint)
    • Line 12: warning: comment on exported function GetTemplate should be of the form "GetTemplate ..." (golint)
    • Line 19: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • IDE/api/tracer/appdash.go
    • Line 1: warning: package comment should be of the form "Package tracer ..." (golint)
    • Line 19: warning: exported function LoadTraceServer should have comment or be unexported (golint)
    • IDE/types/struct_funcs.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 12: warning: comment on exported function CastFSCs should be of the form "CastFSCs ..." (golint)
    • Line 31: warning: comment on exported function NewFSCs should be of the form "NewFSCs ..." (golint)
    • Line 34: warning: comment on exported function CastDex should be of the form "CastDex ..." (golint)
    • Line 53: warning: comment on exported function NewDex should be of the form "NewDex ..." (golint)
    • Line 56: warning: comment on exported function CastSoftUser should be of the form "CastSoftUser ..." (golint)
    • Line 75: warning: comment on exported function NewSoftUser should be of the form "NewSoftUser ..." (golint)
    • Line 78: warning: comment on exported function CastUSettings should be of the form "CastUSettings ..." (golint)
    • Line 97: warning: comment on exported function NewUSettings should be of the form "NewUSettings ..." (golint)
    • Line 100: warning: comment on exported function CastApp should be of the form "CastApp ..." (golint)
    • Line 119: warning: comment on exported function NewApp should be of the form "NewApp ..." (golint)
    • Line 122: warning: comment on exported function CastTemplateEdits should be of the form "CastTemplateEdits ..." (golint)
    • Line 141: warning: comment on exported function NewTemplateEdits should be of the form "NewTemplateEdits ..." (golint)
    • Line 144: warning: comment on exported function CastWebRootEdits should be of the form "CastWebRootEdits ..." (golint)
    • Line 163: warning: comment on exported function NewWebRootEdits should be of the form "NewWebRootEdits ..." (golint)
    • Line 166: warning: comment on exported function CastTEditor should be of the form "CastTEditor ..." (golint)
    • Line 185: warning: comment on exported function NewTEditor should be of the form "NewTEditor ..." (golint)
    • Line 188: warning: comment on exported function CastNavbars should be of the form "CastNavbars ..." (golint)
    • Line 207: warning: comment on exported function NewNavbars should be of the form "NewNavbars ..." (golint)
    • Line 210: warning: comment on exported function CastSModal should be of the form "CastSModal ..." (golint)
    • Line 229: warning: comment on exported function NewSModal should be of the form "NewSModal ..." (golint)
    • Line 232: warning: comment on exported function CastForms should be of the form "CastForms ..." (golint)
    • Line 251: warning: comment on exported function NewForms should be of the form "NewForms ..." (golint)
    • Line 254: warning: comment on exported function CastSButton should be of the form "CastSButton ..." (golint)
    • Line 273: warning: comment on exported function NewSButton should be of the form "NewSButton ..." (golint)
    • Line 276: warning: comment on exported function CastSTab should be of the form "CastSTab ..." (golint)
    • Line 295: warning: comment on exported function NewSTab should be of the form "NewSTab ..." (golint)
    • Line 298: warning: comment on exported function CastDForm should be of the form "CastDForm ..." (golint)
    • Line 317: warning: comment on exported function NewDForm should be of the form "NewDForm ..." (golint)
    • Line 320: warning: comment on exported function CastAlertbs should be of the form "CastAlertbs ..." (golint)
    • Line 339: warning: comment on exported function NewAlertbs should be of the form "NewAlertbs ..." (golint)
    • Line 342: warning: comment on exported function CastInputs should be of the form "CastInputs ..." (golint)
    • Line 361: warning: comment on exported function NewInputs should be of the form "NewInputs ..." (golint)
    • Line 364: warning: comment on exported function CastAput should be of the form "CastAput ..." (golint)
    • Line 383: warning: comment on exported function NewAput should be of the form "NewAput ..." (golint)
    • Line 386: warning: comment on exported function CastRPut should be of the form "CastRPut ..." (golint)
    • Line 405: warning: comment on exported function NewRPut should be of the form "NewRPut ..." (golint)
    • Line 408: warning: comment on exported function CastSSWAL should be of the form "CastSSWAL ..." (golint)
    • Line 427: warning: comment on exported function NewSSWAL should be of the form "NewSSWAL ..." (golint)
    • Line 430: warning: comment on exported function CastSPackageEdit should be of the form "CastSPackageEdit ..." (golint)
    • Line 449: warning: comment on exported function NewSPackageEdit should be of the form "NewSPackageEdit ..." (golint)
    • Line 452: warning: comment on exported function CastDebugObj should be of the form "CastDebugObj ..." (golint)
    • Line 471: warning: comment on exported function NewDebugObj should be of the form "NewDebugObj ..." (golint)
    • Line 474: warning: comment on exported function CastDebugNode should be of the form "CastDebugNode ..." (golint)
    • Line 493: warning: comment on exported function NewDebugNode should be of the form "NewDebugNode ..." (golint)
    • Line 496: warning: comment on exported function CastPkgItem should be of the form "CastPkgItem ..." (golint)
    • Line 515: warning: comment on exported function NewPkgItem should be of the form "NewPkgItem ..." (golint)
    • Line 518: warning: comment on exported function CastSROC should be of the form "CastSROC ..." (golint)
    • Line 537: warning: comment on exported function NewSROC should be of the form "NewSROC ..." (golint)
    • Line 540: warning: comment on exported function CastVHuf should be of the form "CastVHuf ..." (golint)
    • Line 559: warning: comment on exported function NewVHuf should be of the form "NewVHuf ..." (golint)
    • IDE/api/methods/method_MPut.go
    • Line 1: warning: package comment should be of the form "Package methods ..." (golint)
    • Line 5: warning: comment on exported function MPut should be of the form "MPut ..." (golint)
    • IDE/api/sessions/store.go
    • Line 1: warning: package comment should be of the form "Package sessions ..." (golint)
    • Line 7: warning: exported var Store should have comment or be unexported (golint)
    • IDE/api/templates/render.go
    • Line 1: warning: package comment should be of the form "Package templates ..." (golint)
    • Line 17: warning: comment on exported function RenderTemplate should be of the form "RenderTemplate ..." (golint)
    • IDE/api/handlers/rest_ApiTerminal_realtime.go
    • Line 1: warning: package comment should be of the form "Package handlers ..." (golint)
    • Line 17: warning: comment on exported function ApiTerminal_realtime should be of the form "ApiTerminal_realtime ..." (golint)
    • Line 18: warning: don't use underscores in Go names; func ApiTerminal_realtime should be APITerminalRealtime (golint)
    • IDE/api/methods/legacy.go
    • Line 28: warning: exported var DockerLarge should have comment or be unexported (golint)
    • Line 40: warning: exported function GenerateComposeFile should have comment or be unexported (golint)
    • Line 153: warning: exported var DockerSmall should have comment or be unexported (golint)
    • Line 170: warning: exported var Addjsstr should have comment or be unexported (golint)
    • Line 201: warning: exported type Reader should have comment or be unexported (golint)
    • Line 205: warning: exported method Reader.OnData should have comment or be unexported (golint)
    • Line 210: warning: exported method Reader.OnError should have comment or be unexported (golint)
    • Line 217: warning: exported method Reader.OnTimeout should have comment or be unexported (golint)
    • Line 226: warning: comment on exported function Zipit should be of the form "Zipit ..." (golint)
    • Line 288: warning: exported function ProcessLog should have comment or be unexported (golint)
    • Line 297: warning: exported function Walk should have comment or be unexported (golint)
    • Line 302: warning: exported function GetApps should have comment or be unexported (golint)
    • Line 315: warning: exported function GetPlugins should have comment or be unexported (golint)
    • Line 326: warning: exported function SaveKanBan should have comment or be unexported (golint)
    • Line 332: warning: exported function GetKanBan should have comment or be unexported (golint)
    • Line 347: warning: exported function AddConnection should have comment or be unexported (golint)
    • Line 353: warning: exported function Broadcast should have comment or be unexported (golint)
    • Line 369: warning: exported function PushGit should have comment or be unexported (golint)
    • Line 386: warning: exported function CommitGit should have comment or be unexported (golint)
    • Line 408: warning: exported function FindinString should have comment or be unexported (golint)
    • Line 423: warning: exported function FindString should have comment or be unexported (golint)
    • Line 441: warning: exported function FindLine should have comment or be unexported (golint)
    • Line 472: warning: exported function GetLogs should have comment or be unexported (golint)
    • Line 494: warning: exported function ClearLogs should have comment or be unexported (golint)
    • Line 521: warning: exported function AddtoLogs should have comment or be unexported (golint)
    • Line 543: warning: exported function SaveApps should have comment or be unexported (golint)
    • Line 553: warning: exported function SavePlugins should have comment or be unexported (golint)
    • IDE/shutdown.go
    • Line 5: warning: exported function Shutdown should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words

    • IDE/api/methods/method_AnyBugs.go
    • Line 7: warning: "packge" is a misspelling of "package" (misspell)
    • Line 9: warning: "packge" is a misspelling of "package" (misspell)
    • Line 11: warning: "packge" is a misspelling of "package" (misspell)
    • Line 14: warning: "packge" is a misspelling of "package" (misspell)