Preparing report...

Report for github.com/ahmdrz/simorgh

A    Great!    Found 4 issues across 5 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!


gocyclo80%

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.


golint20%

Golint is a linter for Go source code.

    • simorgh/driver/auth.go
    • Line 11: warning: exported const SAFE_PRIME_BITS should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; var server_creds should be serverCreds (golint)
    • simorgh/driver/simorgh.go
    • Line 12: warning: exported type Simorgh should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: exported method Simorgh.Close should have comment or be unexported (golint)
    • Line 39: warning: exported method Simorgh.Set should have comment or be unexported (golint)
    • Line 43: warning: exported method Simorgh.Get should have comment or be unexported (golint)
    • Line 47: warning: exported method Simorgh.Del should have comment or be unexported (golint)
    • Line 51: warning: exported method Simorgh.Clr should have comment or be unexported (golint)
    • simorgh/server/auth.go
    • Line 8: warning: exported type Authentication should have comment or be unexported (golint)
    • Line 17: warning: exported function InitAuthentication should have comment or be unexported (golint)
    • simorgh/server/simorgh.go
    • Line 19: warning: exported const SAFE_PRIME_BITS should have comment or be unexported (golint)
    • Line 20: warning: exported const LIMIT_TIME should have comment or be unexported (golint)
    • Line 21: warning: exported const MAX_CONNECTION should have comment or be unexported (golint)
    • Line 23: warning: exported var DEFAULT_USERNAME should have comment or be unexported (golint)
    • Line 24: warning: exported var DEFAULT_PASSWORD should have comment or be unexported (golint)
    • Line 119: warning: don't use underscores in Go names; var s_creds should be sCreds (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!