Preparing report...

Report for github.com/bitcav/nitr

A    Great!    Found 9 issues across 11 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!


golint18%

Golint is a linter for Go source code.

    • nitr/utils/utils.go
    • Line 23: warning: exported function ConfigFileSetup should have comment or be unexported (golint)
    • Line 110: warning: exported function Logs should have comment or be unexported (golint)
    • Line 132: warning: exported function LogError should have comment or be unexported (golint)
    • Line 138: warning: exported function GetLocalIP should have comment or be unexported (golint)
    • Line 150: warning: exported function GetLocalPort should have comment or be unexported (golint)
    • Line 158: warning: exported function StartServer should have comment or be unexported (golint)
    • Line 204: warning: exported function PasswordHash should have comment or be unexported (golint)
    • Line 207: warning: don't use underscores in Go names; var sha1_hash should be sha1Hash (golint)
    • nitr/models/app.go
    • Line 3: warning: exported type Login should have comment or be unexported (golint)
    • Line 7: warning: exported type Password should have comment or be unexported (golint)
    • Line 13: warning: exported type ApiKey should have comment or be unexported (golint)
    • Line 18: warning: exported type HostInfo should have comment or be unexported (golint)
    • Line 27: warning: exported type User should have comment or be unexported (golint)
    • nitr/cmd/app.go
    • Line 16: warning: exported var Passwd should have comment or be unexported (golint)
    • Line 56: warning: exported var ApiKey should have comment or be unexported (golint)
    • Line 75: warning: exported var QrCode should have comment or be unexported (golint)
    • nitr/handlers/app.go
    • Line 20: warning: exported var ViewsBox should have comment or be unexported (golint)
    • Line 22: warning: exported function Login should have comment or be unexported (golint)
    • Line 38: warning: exported function LoginSubmit should have comment or be unexported (golint)
    • Line 56: warning: exported function Panel should have comment or be unexported (golint)
    • Line 69: warning: exported function PanelContent should have comment or be unexported (golint)
    • Line 88: warning: exported function GenerateApiKey should have comment or be unexported (golint)
    • Line 117: warning: exported function Password should have comment or be unexported (golint)
    • Line 128: warning: exported function PasswordSubmit should have comment or be unexported (golint)
    • Line 148: warning: exported function SocketReader should have comment or be unexported (golint)
    • Line 170: warning: exported function Logout should have comment or be unexported (golint)
    • Line 176: warning: exported function Recover should have comment or be unexported (golint)

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!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words