Preparing report...

Report for github.com/btnguyen2k/prom

(v0.3.0)

A+    Excellent!    Found 25 issues across 54 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


gocyclo53%

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.

    • mongo.go
    • Line 513: warning: cyclomatic complexity 19 of function toIndexModel() is high (> 15) (gocyclo)
    • sql_int_test.go
    • Line 48: warning: cyclomatic complexity 56 of function TestSql_DataTypeInt() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 19 of function TestSql_DataType_PgsqlSerial() is high (> 15) (gocyclo)
    • sql_real_test.go
    • Line 49: warning: cyclomatic complexity 47 of function TestSql_DataTypeReal() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 47 of function TestSql_DataTypeRealZero() is high (> 15) (gocyclo)
    • sql_string_test.go
    • Line 18: warning: cyclomatic complexity 40 of function TestSql_DataTypeString() is high (> 15) (gocyclo)
    • sql_test.go
    • Line 101: warning: cyclomatic complexity 25 of function TestSqlConnect_GetInfo() is high (> 15) (gocyclo)
    • Line 461: warning: cyclomatic complexity 20 of function TestSqlConnect_Unicode() is high (> 15) (gocyclo)
    • sql_datetime_test.go
    • Line 250: warning: cyclomatic complexity 90 of function TestSql_DataTypeNull() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 48 of function TestSql_DataTypeDatetime() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 35 of function TestSql_Timezone() is high (> 15) (gocyclo)
    • aws-dynamodb_test.go
    • Line 190: warning: cyclomatic complexity 41 of function TestAwsDynamodbToAttributeSet() is high (> 15) (gocyclo)
    • Line 2100: warning: cyclomatic complexity 18 of function TestAwsDynamodbConnect_TxDelete() is high (> 15) (gocyclo)
    • Line 2259: warning: cyclomatic complexity 16 of function TestAwsDynamodbConnect_TxSetAttributes() is high (> 15) (gocyclo)
    • Line 2545: warning: cyclomatic complexity 16 of function TestAwsDynamodbConnect_TxDeleteValuesFromSet() is high (> 15) (gocyclo)
    • Line 2341: warning: cyclomatic complexity 16 of function TestAwsDynamodbConnect_TxAddValuesToAttributes() is high (> 15) (gocyclo)
    • Line 2184: warning: cyclomatic complexity 16 of function TestAwsDynamodbConnect_TxRemoveAttributes() is high (> 15) (gocyclo)
    • Line 2437: warning: cyclomatic complexity 16 of function TestAwsDynamodbConnect_TxAddValuesToSet() is high (> 15) (gocyclo)
    • sql_money_test.go
    • Line 15: warning: cyclomatic complexity 29 of function TestSql_DataTypeMoney() is high (> 15) (gocyclo)
    • sql.go
    • Line 774: warning: cyclomatic complexity 58 of function (*SqlConnect).fetchOneRow() is high (> 15) (gocyclo)
    • aws-dynamodb.go
    • Line 169: warning: cyclomatic complexity 18 of function AwsDynamodbToAttributeSet() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!