Preparing report...

Report for github.com/go-ignite/ignite

A    Great!    Found 11 issues across 12 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint8%

Golint is a linter for Go source code.

    • ignite/models/user.go
    • Line 5: warning: exported type User should have comment or be unexported (golint)
    • Line 25: warning: exported type UserInfo should have comment or be unexported (golint)
    • ignite/ss/ss.go
    • Line 18: warning: exported const SS_IMAGE should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported var PortRange should have comment or be unexported (golint)
    • Line 36: warning: exported function CreateContainer should have comment or be unexported (golint)
    • Line 76: warning: exported function StartContainer should have comment or be unexported (golint)
    • Line 80: warning: exported function PullImage should have comment or be unexported (golint)
    • Line 91: warning: exported function KillContainer should have comment or be unexported (golint)
    • Line 96: warning: exported function StopContainer should have comment or be unexported (golint)
    • Line 104: warning: exported function RemoveContainer should have comment or be unexported (golint)
    • Line 115: warning: exported function IsContainerRunning should have comment or be unexported (golint)
    • Line 124: warning: exported function GetContainerStartTime should have comment or be unexported (golint)
    • Line 132: warning: exported function GetContainerStatsOutNet should have comment or be unexported (golint)
    • Line 152: warning: exported function CreateAndStartContainer should have comment or be unexported (golint)
    • Line 160: warning: exported function ContainerExist should have comment or be unexported (golint)
    • ignite/controllers/panel.go
    • Line 37: warning: exported method MainRouter.PanelIndexHandler should have comment or be unexported (golint)
    • Line 93: warning: exported method MainRouter.LogoutHandler should have comment or be unexported (golint)
    • Line 101: warning: exported method MainRouter.CreateServiceHandler should have comment or be unexported (golint)
    • ignite/controllers/router.go
    • Line 14: warning: exported type MainRouter should have comment or be unexported (golint)
    • Line 19: warning: exported method MainRouter.Initialize should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • ignite/utils/conf.go
    • Line 12: warning: comment on exported var APP_Address should be of the form "APP_Address ..." (golint)
    • Line 13: warning: don't use underscores in Go names; var APP_Address should be APPAddress (golint)
    • Line 16: warning: don't use underscores in Go names; var DB_Driver should be DBDriver (golint)
    • Line 16: warning: exported var DB_Connect should have its own declaration (golint)
    • Line 16: warning: don't use underscores in Go names; var DB_Connect should be DBConnect (golint)
    • Line 18: warning: comment on exported var HOST_Address should be of the form "HOST_Address ..." (golint)
    • Line 19: warning: don't use underscores in Go names; var HOST_Address should be HOSTAddress (golint)
    • Line 20: warning: don't use underscores in Go names; var HOST_From should be HOSTFrom (golint)
    • Line 20: warning: exported var HOST_To should have its own declaration (golint)
    • Line 20: warning: don't use underscores in Go names; var HOST_To should be HOSTTo (golint)
    • Line 23: warning: exported function InitConf should have comment or be unexported (golint)
    • ignite/utils/db.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported function InitDB should have comment or be unexported (golint)
    • ignite/utils/utils.go
    • Line 13: warning: exported var StdChars should have comment or be unexported (golint)
    • Line 15: warning: exported function NewPasswd should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; func rand_char should be randChar (golint)
    • Line 20: warning: don't use underscores in Go names; var new_pword should be newPword (golint)
    • Line 21: warning: don't use underscores in Go names; var random_data should be randomData (golint)
    • Line 42: warning: exported function ServiceURL should have comment or be unexported (golint)
    • Line 66: warning: exported function GetAvailablePort should have comment or be unexported (golint)
    • ignite/controllers/index.go
    • Line 16: warning: exported method MainRouter.IndexHandler should have comment or be unexported (golint)
    • Line 33: warning: exported method MainRouter.LoginHandler should have comment or be unexported (golint)
    • Line 61: warning: exported method MainRouter.SignupHandler should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!