Preparing report...

Report for gitlab.com/YottaDB/Lang/YDBGo

A+    Excellent!    Found 15 issues across 29 files

Tweet

gofmt96%

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!


gocyclo75%

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.


golint96%

Golint is a linter for Go source code.

    • /gitlab.com/YottaDB/Lang/YDBGo/internal/test_helpers/helpers.go
    • Line 13: warning: don't use an underscore in package name (golint)
    • Line 38: warning: exported const VarSiz should have comment or be unexported (golint)
    • Line 39: warning: exported const AryDim should have comment or be unexported (golint)
    • Line 40: warning: exported const SubSiz should have comment or be unexported (golint)
    • Line 41: warning: exported const ValSiz should have comment or be unexported (golint)
    • Line 42: warning: exported const Timeout should have comment or be unexported (golint)
    • Line 43: warning: exported const DebugFlag should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function Assertnoerr should be of the form "Assertnoerr ..." (golint)
    • Line 59: warning: comment on exported function Dbdeleteall should be of the form "Dbdeleteall ..." (golint)
    • Line 86: warning: comment on exported function VerifyLockExists should be of the form "VerifyLockExists ..." (golint)
    • Line 115: warning: comment on exported function Buftary2strary should be of the form "Buftary2strary ..." (golint)
    • Line 129: warning: comment on exported function Cmpstrary should be of the form "Cmpstrary ..." (golint)
    • Line 144: warning: comment on exported function TestTpRtn should be of the form "TestTpRtn ..." (golint)
    • Line 204: warning: exported function CheckErrorExpectYDB_ERR_NODEEND should have comment or be unexported (golint)
    • Line 204: warning: don't use underscores in Go names; func CheckErrorExpectYDB_ERR_NODEEND should be CheckErrorExpectYDBERRNODEEND (golint)
    • Line 211: warning: exported function CheckErrorExpectYDB_ERR_STRUCTNOTALLOCD should have comment or be unexported (golint)
    • Line 211: warning: don't use underscores in Go names; func CheckErrorExpectYDB_ERR_STRUCTNOTALLOCD should be CheckErrorExpectYDBERRSTRUCTNOTALLOCD (golint)
    • Line 218: warning: exported function CheckErrorExpectYDB_ERR_INSUFFSUBS should have comment or be unexported (golint)
    • Line 218: warning: don't use underscores in Go names; func CheckErrorExpectYDB_ERR_INSUFFSUBS should be CheckErrorExpectYDBERRINSUFFSUBS (golint)
    • Line 225: warning: comment on exported function MyGoCallBack should be of the form "MyGoCallBack ..." (golint)
    • Line 232: warning: exported function Available should have comment or be unexported (golint)
    • Line 236: warning: comment on exported function RunTimedTests should be of the form "RunTimedTests ..." (golint)
    • Line 242: warning: exported function SkipTimedTests should have comment or be unexported (golint)
    • Line 250: warning: exported function SkipCITests should have comment or be unexported (golint)
    • Line 256: warning: exported function SkipARMV7LTests should have comment or be unexported (golint)
    • Line 262: warning: exported function SkipMemIntensiveTests should have comment or be unexported (golint)
    • Line 272: warning: exported function GetSystemMemory should have comment or be unexported (golint)
    • Line 295: warning: exported function GetHeapUsage should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign79%

IneffAssign detects ineffectual assignments in Go code.

    • /gitlab.com/YottaDB/Lang/YDBGo/key_t_test.go
    • Line 88: warning: ineffectual assignment to err (ineffassign)
    • Line 351: warning: ineffectual assignment to err (ineffassign)
    • Line 366: warning: ineffectual assignment to err (ineffassign)
    • Line 392: warning: ineffectual assignment to err (ineffassign)
    • Line 418: warning: ineffectual assignment to err (ineffassign)
    • Line 432: warning: ineffectual assignment to err (ineffassign)
    • Line 447: warning: ineffectual assignment to err (ineffassign)
    • Line 504: warning: ineffectual assignment to err (ineffassign)

misspell79%

Misspell Finds commonly misspelled English words