Preparing report...

Report for github.com/spaceuptech/space-cloud

A+    Excellent!    Found 97 issues across 561 files

Tweet

gofmt98%

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!


gocyclo89%

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.

    • space-cloud/gateway/utils/graphql/read.go
    • Line 682: warning: cyclomatic complexity 28 of function generateOptions() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 27 of function (*Module).extractSelectionSet() is high (> 15) (gocyclo)
    • Line 81: warning: cyclomatic complexity 18 of function (*Module).execReadRequest() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 18 of function aggregateSingleField() is high (> 15) (gocyclo)
    • space-cloud/gateway/modules/schema/inspection.go
    • Line 77: warning: cyclomatic complexity 25 of function generateInspection() is high (> 15) (gocyclo)
    • Line 241: warning: cyclomatic complexity 22 of function inspectionSQLServerCheckFieldType() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 22 of function inspectionPostgresCheckFieldType() is high (> 15) (gocyclo)
    • Line 180: warning: cyclomatic complexity 21 of function inspectionMySQLCheckFieldType() is high (> 15) (gocyclo)
    • space-cloud/gateway/modules/schema/helpers/operations.go
    • Line 277: warning: cyclomatic complexity 28 of function AdjustWhereClause() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 24 of function CrudPostProcess() is high (> 15) (gocyclo)
    • Line 126: warning: cyclomatic complexity 20 of function ValidateUpdateOperation() is high (> 15) (gocyclo)
    • Line 23: warning: cyclomatic complexity 18 of function SchemaValidator() is high (> 15) (gocyclo)
    • space-cloud/gateway/modules/crud/sql/update.go
    • Line 137: warning: cyclomatic complexity 45 of function (*SQL).generateUpdateQuery() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 25 of function (*SQL).update() is high (> 15) (gocyclo)
    • Line 357: warning: cyclomatic complexity 18 of function (*SQL).sanitiseUpdateQuery2() is high (> 15) (gocyclo)
    • space-cloud/gateway/modules/crud/sql/read.go
    • Line 26: warning: cyclomatic complexity 40 of function (*SQL).generateReadQuery() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 20 of function (*SQL).readExec() is high (> 15) (gocyclo)
    • Line 365: warning: cyclomatic complexity 19 of function (*SQL).processRows() is high (> 15) (gocyclo)

golint99%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words

    • space-cloud/gateway/modules/crud/sql/delete_test.go
    • Line 39: warning: "Successfull" is a misspelling of "Successful" (misspell)
    • Line 51: warning: "Successfull" is a misspelling of "Successful" (misspell)
    • Line 63: warning: "Successfull" is a misspelling of "Successful" (misspell)
    • Line 196: warning: "Successfull" is a misspelling of "Successful" (misspell)
    • Line 329: warning: "Successfull" is a misspelling of "Successful" (misspell)
    • Line 341: warning: "Successfull" is a misspelling of "Successful" (misspell)
    • space-cloud/gateway/utils/store_test.go
    • Line 23: warning: "succesful" is a misspelling of "successful" (misspell)
    • Line 36: warning: "succesful" is a misspelling of "successful" (misspell)
    • Line 54: warning: "succesful" is a misspelling of "successful" (misspell)
    • Line 90: warning: "succesful" is a misspelling of "successful" (misspell)
    • Line 1170: warning: "sucesful" is a misspelling of "successful" (misspell)
    • Line 1216: warning: "sucesful" is a misspelling of "successful" (misspell)