Preparing report...

Report for github.com/hunkeelin/server

A    Great!    Found 4 issues across 7 files

Tweet

gofmt71%

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!


gocyclo85%

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.


golint71%

Golint is a linter for Go source code.

    • server/server.go
    • Line 36: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign57%

IneffAssign detects ineffectual assignments in Go code.

    • server/inbytes.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/hunkeelin/SuperCAclient/lib (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/hunkeelin/klinutils (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/hunkeelin/pki/v1 (invalid package name: "") (ineffassign)
    • Line 40: warning: undeclared name: client (ineffassign)
    • Line 45: warning: undeclared name: klinpki (ineffassign)
    • Line 51: warning: undeclared name: client (ineffassign)
    • Line 5: warning: "github.com/hunkeelin/SuperCAclient/lib" imported but not used (ineffassign)
    • Line 7: warning: "github.com/hunkeelin/pki/v1" imported but not used (ineffassign)
    • Line 5: warning: could not import github.com/hunkeelin/SuperCAclient/lib (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/hunkeelin/klinutils (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/hunkeelin/pki/v1 (invalid package name: "") (ineffassign)
    • Line 40: warning: undeclared name: client (ineffassign)
    • Line 45: warning: undeclared name: klinpki (ineffassign)
    • Line 51: warning: undeclared name: client (ineffassign)
    • Line 5: warning: "github.com/hunkeelin/SuperCAclient/lib" imported but not used (ineffassign)
    • Line 7: warning: "github.com/hunkeelin/pki/v1" imported but not used (ineffassign)
    • server/getlistener.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import golang.org/x/net/http2 (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import golang.org/x/net/http2 (invalid package name: "") (ineffassign)
    • server/webhook_test.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/json-iterator/go (invalid package name: "") (ineffassign)
    • Line 14: warning: undeclared name: jsoniter (ineffassign)
    • Line 6: warning: "github.com/json-iterator/go" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!