Preparing report...

Report for github.com/lca1/drynx

A+    Excellent!    Found 17 issues across 55 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!


gocyclo81%

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.

    • drynx/services/service_test.go
    • Line 352: warning: cyclomatic complexity 62 of function TestServiceDrynxLogisticRegressionForSPECTF() is high (> 15) (gocyclo)
    • Line 1051: warning: cyclomatic complexity 58 of function TestServiceDrynxLogisticRegressionV2() is high (> 15) (gocyclo)
    • Line 1841: warning: cyclomatic complexity 58 of function TestServiceDrynxLogisticRegressionGSE() is high (> 15) (gocyclo)
    • Line 1460: warning: cyclomatic complexity 58 of function TestServiceDrynxLogisticRegressionBC() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 56 of function TestServiceDrynx() is high (> 15) (gocyclo)
    • Line 721: warning: cyclomatic complexity 28 of function TestServiceDrynxLogisticRegression() is high (> 15) (gocyclo)
    • drynx/services/service.go
    • Line 263: warning: cyclomatic complexity 26 of function (*ServiceDrynx).HandleSurveyQuery() is high (> 15) (gocyclo)
    • Line 142: warning: cyclomatic complexity 16 of function NewService() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign76%

IneffAssign detects ineffectual assignments in Go code.

    • drynx/services/service_test.go
    • Line 91: warning: ineffectual assignment to thresholdEntityProofsVerif (ineffassign)
    • Line 403: warning: ineffectual assignment to means (ineffassign)
    • Line 404: warning: ineffectual assignment to standardDeviations (ineffassign)
    • Line 430: warning: ineffectual assignment to thresholdEntityProofsVerif (ineffassign)
    • Line 844: warning: ineffectual assignment to err (ineffassign)
    • Line 845: warning: ineffectual assignment to err (ineffassign)
    • Line 849: warning: ineffectual assignment to err (ineffassign)
    • Line 851: warning: ineffectual assignment to err (ineffassign)
    • Line 856: warning: ineffectual assignment to err (ineffassign)
    • Line 858: warning: ineffectual assignment to err (ineffassign)
    • Line 861: warning: ineffectual assignment to means (ineffassign)
    • Line 862: warning: ineffectual assignment to standardDeviations (ineffassign)
    • Line 1145: warning: ineffectual assignment to means (ineffassign)
    • Line 1146: warning: ineffectual assignment to standardDeviations (ineffassign)
    • Line 1171: warning: ineffectual assignment to thresholdEntityProofsVerif (ineffassign)
    • Line 1531: warning: ineffectual assignment to means (ineffassign)
    • Line 1532: warning: ineffectual assignment to standardDeviations (ineffassign)
    • Line 1557: warning: ineffectual assignment to thresholdEntityProofsVerif (ineffassign)
    • Line 1936: warning: ineffectual assignment to means (ineffassign)
    • Line 1937: warning: ineffectual assignment to standardDeviations (ineffassign)
    • Line 1962: warning: ineffectual assignment to thresholdEntityProofsVerif (ineffassign)
    • drynx/lib/encoding/encode_decode.go
    • Line 23: warning: ineffectual assignment to tmpEncryptedResponse (ineffassign)
    • Line 69: warning: ineffectual assignment to encryptedResponse (ineffassign)
    • Line 69: warning: ineffectual assignment to clearResponse (ineffassign)
    • Line 69: warning: ineffectual assignment to createPrf (ineffassign)
    • Line 89: warning: ineffectual assignment to cipher (ineffassign)
    • Line 90: warning: ineffectual assignment to clear (ineffassign)
    • Line 93: warning: ineffectual assignment to prf (ineffassign)
    • Line 108: warning: ineffectual assignment to cipher (ineffassign)
    • Line 109: warning: ineffectual assignment to clear (ineffassign)
    • Line 112: warning: ineffectual assignment to prf (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words