Preparing report...

Report for github.com/Chyroc/phpmyadmin-cli

A    Great!    Found 9 issues across 14 files

Tweet

gofmt92%

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.


golint42%

Golint is a linter for Go source code.

    • phpmyadmin-cli/internal/common/log.go
    • Line 13: warning: exported function InitLog should have comment or be unexported (golint)
    • Line 21: warning: exported function Debug should have comment or be unexported (golint)
    • Line 27: warning: exported function Debug2 should have comment or be unexported (golint)
    • Line 33: warning: exported function Debug3 should have comment or be unexported (golint)
    • Line 39: warning: exported function Info should have comment or be unexported (golint)
    • Line 43: warning: exported function Warn should have comment or be unexported (golint)
    • Line 47: warning: exported function Error should have comment or be unexported (golint)
    • Line 51: warning: exported function Exit should have comment or be unexported (golint)
    • Line 56: warning: exported function Logf should have comment or be unexported (golint)
    • phpmyadmin-cli/internal/common/var.go
    • Line 5: warning: exported var IsDebug1 should have comment or be unexported (golint)
    • Line 6: warning: exported var IsDebug2 should have comment or be unexported (golint)
    • Line 7: warning: exported var IsDebug3 should have comment or be unexported (golint)
    • Line 9: warning: exported var ErrNeedLogin should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrLoginFailed should have comment or be unexported (golint)
    • phpmyadmin-cli/main.go
    • Line 32: warning: exported var ErrNotSetServer should have comment or be unexported (golint)
    • Line 215: warning: exported var LivePrefixState should have comment or be unexported (golint)
    • phpmyadmin-cli/internal/requests/session.go
    • Line 10: warning: exported type Session should have comment or be unexported (golint)
    • Line 16: warning: exported var DefaultSession should have comment or be unexported (golint)
    • Line 18: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 63: warning: exported method Session.Cookie should have comment or be unexported (golint)
    • Line 72: warning: exported method Session.Get should have comment or be unexported (golint)
    • Line 83: warning: exported method Session.Post should have comment or be unexported (golint)
    • phpmyadmin-cli/internal/phpmyadmin/phpmyadmin.go
    • Line 17: warning: exported var DefaultPHPMyAdmin should have comment or be unexported (golint)
    • Line 32: warning: exported type Server should have comment or be unexported (golint)
    • Line 37: warning: exported type Servers should have comment or be unexported (golint)
    • Line 41: warning: exported method Servers.Print 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!