Preparing report...

Report for github.com/orijtech/frontender

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


gocyclo100%

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.

No problems detected. Good job!


golint57%

Golint is a linter for Go source code.

    • frontender/lively/lively.go
    • Line 19: warning: exported type Peer should have comment or be unexported (golint)
    • Line 31: warning: exported type Ping should have comment or be unexported (golint)
    • Line 91: warning: exported method Peer.Consesus should have comment or be unexported (golint)
    • Line 97: warning: exported method Peer.AddPeer should have comment or be unexported (golint)
    • Line 97: warning: receiver name p should be consistent with previous receiver name e for Peer (golint)
    • Line 113: warning: exported method Peer.SetHTTPRoundTripper should have comment or be unexported (golint)
    • Line 113: warning: receiver name p should be consistent with previous receiver name e for Peer (golint)
    • Line 119: warning: exported type Liveliness should have comment or be unexported (golint)
    • Line 126: warning: exported type LivelyRequest should have comment or be unexported (golint)
    • Line 130: warning: exported method Peer.Liveliness should have comment or be unexported (golint)
    • Line 130: warning: receiver name p should be consistent with previous receiver name e for Peer (golint)
    • frontender/frontender.go
    • Line 38: warning: exported type Request should have comment or be unexported (golint)
    • Line 98: warning: exported method Request.Validate should have comment or be unexported (golint)
    • Line 108: warning: exported type Server should have comment or be unexported (golint)
    • Line 116: warning: comment on exported method Request.SynthesizeDomains should be of the form "SynthesizeDomains ..." (golint)
    • Line 168: warning: exported type ListenConfirmation should have comment or be unexported (golint)
    • Line 173: warning: exported method ListenConfirmation.Close should have comment or be unexported (golint)
    • Line 177: warning: exported method ListenConfirmation.Wait should have comment or be unexported (golint)
    • Line 185: warning: comment on exported function Listen should be of the form "Listen ..." (golint)
    • frontender/gen.go
    • Line 39: warning: exported type DeployInfo should have comment or be unexported (golint)
    • Line 51: warning: exported function GenerateDockerImageForGCE should have comment or be unexported (golint)
    • Line 55: warning: exported type BinaryHandle should have comment or be unexported (golint)
    • Line 67: warning: exported method BinaryHandle.Close should have comment or be unexported (golint)
    • Line 83: warning: exported function GenerateBinary should have comment or be unexported (golint)
    • Line 151: warning: exported function GenerateDockerImage should have comment or be unexported (golint)
    • Line 205: warning: exported type Dependency should have comment or be unexported (golint)
    • Line 210: warning: exported type DockerConfig should have comment or be unexported (golint)
    • Line 250: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign14%

IneffAssign detects ineffectual assignments in Go code.

    • frontender/cmd/frontender/main.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/orijtech/frontender (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/orijtech/namespace (invalid package name: "") (ineffassign)
    • Line 53: warning: addr declared but not used (ineffassign)
    • frontender/lively/lively.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: could not import github.com/orijtech/otils (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/odeke-em/semalim (invalid package name: "") (ineffassign)
    • frontender/lively/lively_test.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/orijtech/frontender/lively (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/odeke-em/go-uuid (invalid package name: "") (ineffassign)
    • Line 123: warning: undeclared name: uuid (ineffassign)
    • Line 18: warning: "github.com/odeke-em/go-uuid" imported but not used (ineffassign)
    • frontender/frontender.go
    • Line 35: warning: cannot find package "." in: (ineffassign)
    • Line 32: warning: cannot find package "." in: (ineffassign)
    • Line 33: warning: cannot find package "." in: (ineffassign)
    • Line 30: warning: cannot find package "." in: (ineffassign)
    • Line 30: warning: could not import golang.org/x/crypto/acme/autocert (invalid package name: "") (ineffassign)
    • Line 32: warning: could not import github.com/orijtech/frontender/lively (invalid package name: "") (ineffassign)
    • Line 33: warning: could not import github.com/orijtech/otils (invalid package name: "") (ineffassign)
    • Line 35: warning: could not import github.com/odeke-em/go-uuid (invalid package name: "") (ineffassign)
    • Line 360: warning: undeclared name: uuid (ineffassign)
    • Line 368: warning: undeclared name: uuid (ineffassign)
    • Line 35: warning: "github.com/odeke-em/go-uuid" imported but not used (ineffassign)
    • frontender/gen.go
    • Line 89: warning: undeclared name: uuid (ineffassign)
    • Line 235: warning: undeclared name: uuid (ineffassign)
    • Line 32: warning: "github.com/odeke-em/go-uuid" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!