Preparing report...

Report for github.com/camba1/gotemp

A+    Excellent!    Found 21 issues across 83 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!


golint75%

Golint is a linter for Go source code.

    • gotemp/globalUtils/dbConnetUtils.go
    • Line 1: warning: don't use MixedCaps in package name; globalUtils should be globalutils (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gotemp/user/server/tokenService.go
    • Line 53: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • gotemp/globalMonitoring/doc.go
    • Line 6: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 7: warning: don't use MixedCaps in package name; globalMonitoring should be globalmonitoring (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • gotemp/customer/client/customerClient.go
    • Line 29: warning: CustomerSrvService not declared by package proto (ineffassign)
    • Line 29: warning: SearchId not declared by package proto (ineffassign)
    • Line 29: warning: Customer not declared by package proto (ineffassign)
    • Line 48: warning: CustomerSrvService not declared by package proto (ineffassign)
    • Line 48: warning: Customers not declared by package proto (ineffassign)
    • Line 74: warning: CustomerSrvService not declared by package proto (ineffassign)
    • Line 74: warning: Customer not declared by package proto (ineffassign)
    • Line 110: warning: CustomerSrvService not declared by package proto (ineffassign)
    • Line 110: warning: Customer not declared by package proto (ineffassign)
    • Line 110: warning: Customer not declared by package proto (ineffassign)
    • Line 135: warning: CustomerSrvService not declared by package proto (ineffassign)
    • Line 135: warning: SearchId not declared by package proto (ineffassign)
    • Line 165: warning: UserSrvService not declared by package proto (ineffassign)
    • Line 165: warning: User not declared by package proto (ineffassign)
    • Line 165: warning: Token not declared by package proto (ineffassign)
    • Line 179: warning: UserSrvService not declared by package proto (ineffassign)
    • Line 51: warning: SearchParams not declared by package proto (ineffassign)
    • Line 81: warning: Customer not declared by package proto (ineffassign)
    • Line 84: warning: GlValidityDate not declared by package globalProtos (ineffassign)
    • Line 88: warning: GlModification not declared by package globalProtos (ineffassign)
    • Line 166: warning: User not declared by package proto (ineffassign)
    • Line 180: warning: User not declared by package proto (ineffassign)
    • Line 204: warning: NewUserSrvService not declared by package proto (ineffassign)
    • Line 209: warning: NewCustomerSrvService not declared by package proto (ineffassign)
    • Line 218: warning: SearchId not declared by package proto (ineffassign)
    • gotemp/product/client/productClient.go
    • Line 29: warning: ProductSrvService not declared by package proto (ineffassign)
    • Line 29: warning: SearchId not declared by package proto (ineffassign)
    • Line 29: warning: Product not declared by package proto (ineffassign)
    • Line 48: warning: ProductSrvService not declared by package proto (ineffassign)
    • Line 48: warning: Products not declared by package proto (ineffassign)
    • Line 74: warning: ProductSrvService not declared by package proto (ineffassign)
    • Line 74: warning: Product not declared by package proto (ineffassign)
    • Line 111: warning: ProductSrvService not declared by package proto (ineffassign)
    • Line 111: warning: Product not declared by package proto (ineffassign)
    • Line 111: warning: Product not declared by package proto (ineffassign)
    • Line 137: warning: ProductSrvService not declared by package proto (ineffassign)
    • Line 137: warning: SearchId not declared by package proto (ineffassign)
    • Line 167: warning: UserSrvService not declared by package proto (ineffassign)
    • Line 167: warning: User not declared by package proto (ineffassign)
    • Line 167: warning: Token not declared by package proto (ineffassign)
    • Line 181: warning: UserSrvService not declared by package proto (ineffassign)
    • Line 51: warning: SearchParams not declared by package proto (ineffassign)
    • Line 81: warning: Product not declared by package proto (ineffassign)
    • Line 85: warning: GlValidityDate not declared by package globalProtos (ineffassign)
    • Line 89: warning: GlModification not declared by package globalProtos (ineffassign)
    • Line 168: warning: User not declared by package proto (ineffassign)
    • Line 182: warning: User not declared by package proto (ineffassign)
    • Line 206: warning: NewUserSrvService not declared by package proto (ineffassign)
    • Line 211: warning: NewProductSrvService not declared by package proto (ineffassign)
    • Line 220: warning: SearchId not declared by package proto (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words

    • gotemp/product/server/statements/errorstatements.go
    • Line 39: warning: "producto" is a misspelling of "production" (misspell)
    • Line 40: warning: "producto" is a misspelling of "production" (misspell)
    • Line 41: warning: "producto" is a misspelling of "production" (misspell)
    • Line 42: warning: "Producto" is a misspelling of "Production" (misspell)
    • Line 42: warning: "producto" is a misspelling of "production" (misspell)
    • Line 45: warning: "producto" is a misspelling of "production" (misspell)