Preparing report...

Report for github.com/simonmittag/j8a

(v0.9.1)

A+    Excellent!    Found 11 issues across 64 files

Tweet

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!


gofmt95%

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


gocyclo93%

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.

    • config.go
    • Line 195: warning: cyclomatic complexity 20 of function (Config).validateAcmeConfig() is high (> 15) (gocyclo)
    • websockethandler.go
    • Line 199: warning: cyclomatic complexity 16 of function (*Proxy).logWebsocketConnectionExitStatus() is high (> 15) (gocyclo)
    • jwt.go
    • Line 113: warning: cyclomatic complexity 27 of function (*Jwt).Validate() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 26 of function (*Jwt).parseKey() is high (> 15) (gocyclo)
    • config_test.go
    • Line 692: warning: cyclomatic complexity 22 of function TestFqdnValidate() is high (> 15) (gocyclo)

ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • jwt.go
    • Line 256: warning: ineffectual assignment to err (ineffassign)
    • Line 360: warning: ineffectual assignment to err (ineffassign)
    • Line 377: warning: ineffectual assignment to err (ineffassign)
    • Line 256: warning: ineffectual assignment to err (ineffassign)
    • Line 360: warning: ineffectual assignment to err (ineffassign)
    • Line 377: warning: ineffectual assignment to err (ineffassign)
    • proxy.go
    • Line 762: warning: ineffectual assignment to token (ineffassign)
    • Line 762: warning: ineffectual assignment to token (ineffassign)
    • tls.go
    • Line 186: warning: ineffectual assignment to j (ineffassign)
    • Line 186: warning: ineffectual assignment to j (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words

    • proxy.go
    • Line 685: warning: "negotation" is a misspelling of "negotiation" (misspell)
    • route_test.go
    • Line 93: warning: "successfuly" is a misspelling of "successfully" (misspell)
    • Line 115: warning: "successfuly" is a misspelling of "successfully" (misspell)