Preparing report...

Report for github.com/Danny-Dasilva/CycleTLS

A    Great!    Found 15 issues across 24 files

Tweet

gofmt87%

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!


gocyclo87%

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.


golint79%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign41%

IneffAssign detects ineffectual assignments in Go code.

    • CycleTLS/tests/golang_hold/weird_dual.go
    • Line 22: warning: myTLSRequest redeclared in this block (ineffassign)
    • Line 36: warning: Result redeclared in this block (ineffassign)
    • Line 42: warning: response redeclared in this block (ineffassign)
    • Line 48: warning: myTLSResponse redeclared in this block (ineffassign)
    • Line 53: warning: getWebsocketAddr redeclared in this block (ineffassign)
    • Line 70: warning: dispatcher redeclared in this block (ineffassign)
    • Line 121: warning: workerPool redeclared in this block (ineffassign)
    • Line 129: warning: worker redeclared in this block (ineffassign)
    • Line 170: warning: main redeclared in this block (ineffassign)
    • Line 118: warning: other declaration of greeting (ineffassign)
    • Line 86: warning: undeclared name: Browser (ineffassign)
    • Line 91: warning: undeclared name: NewClient (ineffassign)
    • Line 210: warning: undeclared name: Browser (ineffassign)
    • Line 215: warning: undeclared name: NewClient (ineffassign)
    • CycleTLS/tests/golang/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/Danny-Dasilva/CycleTLS/cycletls (invalid package name: "") (ineffassign)
    • Line 11: warning: other declaration of main (ineffassign)
    • Line 11: warning: other declaration of main (ineffassign)
    • CycleTLS/tests/golang_hold/https.go
    • Line 20: warning: Cookie redeclared in this block (ineffassign)
    • Line 41: warning: Options redeclared in this block (ineffassign)
    • Line 48: warning: Time redeclared in this block (ineffassign)
    • Line 84: warning: TLS redeclared in this block (ineffassign)
    • Line 90: warning: ParseDateString redeclared in this block (ineffassign)
    • Line 97: warning: main redeclared in this block (ineffassign)
    • Line 53: warning: method UnmarshalJSON already declared for type Time struct{Time time.Time} (ineffassign)
    • CycleTLS/tests/golang_hold/cookies.go
    • Line 20: warning: other declaration of Cookie (ineffassign)
    • Line 41: warning: other declaration of Options (ineffassign)
    • Line 48: warning: other declaration of Time (ineffassign)
    • Line 84: warning: other declaration of TLS (ineffassign)
    • Line 90: warning: other declaration of ParseDateString (ineffassign)
    • Line 97: warning: other declaration of main (ineffassign)
    • Line 97: warning: other declaration of main (ineffassign)
    • Line 97: warning: other declaration of main (ineffassign)
    • Line 97: warning: other declaration of main (ineffassign)
    • Line 53: warning: other declaration of UnmarshalJSON (ineffassign)
    • CycleTLS/tests/golang_hold/index copy.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)
    • Line 199: warning: main redeclared in this block (ineffassign)
    • Line 22: warning: other declaration of myTLSRequest (ineffassign)
    • Line 36: warning: other declaration of Result (ineffassign)
    • Line 42: warning: other declaration of response (ineffassign)
    • Line 48: warning: other declaration of myTLSResponse (ineffassign)
    • Line 53: warning: other declaration of getWebsocketAddr (ineffassign)
    • Line 106: warning: other declaration of dispatcher (ineffassign)
    • Line 149: warning: other declaration of workerPool (ineffassign)
    • Line 157: warning: other declaration of worker (ineffassign)
    • Line 22: warning: other declaration of myTLSRequest (ineffassign)
    • Line 36: warning: other declaration of Result (ineffassign)
    • Line 42: warning: other declaration of response (ineffassign)
    • Line 48: warning: other declaration of myTLSResponse (ineffassign)
    • Line 53: warning: other declaration of getWebsocketAddr (ineffassign)
    • Line 106: warning: other declaration of dispatcher (ineffassign)
    • Line 149: warning: other declaration of workerPool (ineffassign)
    • Line 157: warning: other declaration of worker (ineffassign)
    • Line 79: warning: undeclared name: Browser (ineffassign)
    • Line 84: warning: undeclared name: NewClient (ineffassign)
    • Line 122: warning: undeclared name: Browser (ineffassign)
    • Line 127: warning: undeclared name: NewClient (ineffassign)
    • CycleTLS/tests/golang_hold/working.go
    • Line 22: warning: myTLSRequest redeclared in this block (ineffassign)
    • Line 36: warning: Result redeclared in this block (ineffassign)
    • Line 42: warning: response redeclared in this block (ineffassign)
    • Line 48: warning: myTLSResponse redeclared in this block (ineffassign)
    • Line 53: warning: getWebsocketAddr redeclared in this block (ineffassign)
    • Line 70: warning: dispatcher redeclared in this block (ineffassign)
    • Line 112: warning: greeting redeclared in this block (ineffassign)
    • Line 115: warning: workerPool redeclared in this block (ineffassign)
    • Line 123: warning: worker redeclared in this block (ineffassign)
    • Line 165: warning: main redeclared in this block (ineffassign)
    • Line 86: warning: undeclared name: Browser (ineffassign)
    • Line 91: warning: undeclared name: NewClient (ineffassign)
    • Line 206: warning: undeclared name: Browser (ineffassign)
    • Line 211: warning: undeclared name: NewClient (ineffassign)
    • CycleTLS/tests/golang/single.go
    • Line 4: warning: local import "./cycletls" in non-local package (ineffassign)
    • Line 4: warning: could not import ./cycletls (invalid package name: "") (ineffassign)
    • Line 11: warning: main redeclared in this block (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!