Preparing report...

Report for github.com/btnguyen2k/consu

A+    Excellent!    Found 5 issues across 18 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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo72%

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.

    • consu/reddo/Reddo_test.go
    • Line 958: warning: cyclomatic complexity 30 of function TestToStruct() is high (> 15) (gocyclo)
    • Line 803: warning: cyclomatic complexity 26 of function TestToTimeWithLayout() is high (> 15) (gocyclo)
    • Line 1416: warning: cyclomatic complexity 22 of function TestToPointer() is high (> 15) (gocyclo)
    • Line 402: warning: cyclomatic complexity 19 of function TestToUint() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 18 of function TestToBool() is high (> 15) (gocyclo)
    • Line 271: warning: cyclomatic complexity 18 of function TestToInt() is high (> 15) (gocyclo)
    • Line 1126: warning: cyclomatic complexity 17 of function testToSlice() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 16 of function TestToFloat() is high (> 15) (gocyclo)
    • consu/semita/Semita_test.go
    • Line 1689: warning: cyclomatic complexity 43 of function TestSemita_SetValue_MultiLevelMap() is high (> 15) (gocyclo)
    • Line 1504: warning: cyclomatic complexity 43 of function TestSemita_GetValueOfType_MultiLevelMixed() is high (> 15) (gocyclo)
    • Line 1321: warning: cyclomatic complexity 43 of function TestSemita_GetValueOfType_MultiLevelStruct() is high (> 15) (gocyclo)
    • Line 1138: warning: cyclomatic complexity 43 of function TestSemita_GetValueOfType_MultiLevelMap() is high (> 15) (gocyclo)
    • Line 1955: warning: cyclomatic complexity 42 of function TestSemita_SetValue_MultiLevelStruct() is high (> 15) (gocyclo)
    • Line 2219: warning: cyclomatic complexity 35 of function TestSemita_SetValue_MultiLevelMixed() is high (> 15) (gocyclo)
    • Line 2452: warning: cyclomatic complexity 24 of function TestSemita_SetValue_MultiLevelMap_CreateNodes() is high (> 15) (gocyclo)
    • Line 672: warning: cyclomatic complexity 23 of function TestSemita_GetValueMap() is high (> 15) (gocyclo)
    • Line 744: warning: cyclomatic complexity 23 of function TestSemita_GetValueStruct() is high (> 15) (gocyclo)
    • Line 600: warning: cyclomatic complexity 23 of function TestSemita_GetValueSlice() is high (> 15) (gocyclo)
    • Line 528: warning: cyclomatic complexity 23 of function TestSemita_GetValueArray() is high (> 15) (gocyclo)
    • Line 318: warning: cyclomatic complexity 21 of function TestGetTypeOfStructAttibute() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 19 of function TestCreateZero_Primitives() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 19 of function TestGetTypeOfMapKey() is high (> 15) (gocyclo)
    • Line 270: warning: cyclomatic complexity 17 of function TestGetTypeOfElement() is high (> 15) (gocyclo)
    • consu/semita/node_test.go
    • Line 1082: warning: cyclomatic complexity 23 of function TestNode_createChildOfStruct() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 23 of function TestNode_nextEmptyOrNonExist() is high (> 15) (gocyclo)
    • Line 1552: warning: cyclomatic complexity 21 of function TestNode_removeValue_Struct() is high (> 15) (gocyclo)
    • Line 1285: warning: cyclomatic complexity 20 of function TestNode_createChildOfArray() is high (> 15) (gocyclo)
    • Line 1197: warning: cyclomatic complexity 20 of function TestNode_createChildOfSlice() is high (> 15) (gocyclo)
    • Line 1021: warning: cyclomatic complexity 16 of function TestNode_createChildOfMap() 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!