Report for github.com/surrealdb/rixxdb

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


gocyclo82%

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.

    • rixxdb/tx.go
    • Line 1120: warning: cyclomatic complexity 20 of function (*TX).PutR() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 20 of function (*TX).GetR() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 19 of function (*TX).ClrR() is high (> 15) (gocyclo)
    • Line 866: warning: cyclomatic complexity 19 of function (*TX).DelR() is high (> 15) (gocyclo)

golint88%

Golint is a linter for Go source code.

    • rixxdb/it.go
    • Line 7: warning: exported type IT should have comment or be unexported (golint)
    • Line 12: warning: exported method IT.First should have comment or be unexported (golint)
    • Line 20: warning: exported method IT.Last should have comment or be unexported (golint)
    • Line 28: warning: exported method IT.Prev should have comment or be unexported (golint)
    • Line 36: warning: exported method IT.Next should have comment or be unexported (golint)
    • Line 44: warning: exported method IT.Seek should have comment or be unexported (golint)
    • Line 52: warning: exported method IT.Valid should have comment or be unexported (golint)
    • rixxdb/tx.go
    • Line 173: warning: comment on exported method TX.Cursor should be of the form "Cursor ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • rixxdb/main_test.go
    • Line 76: warning: ineffectual assignment to err (ineffassign)
    • Line 78: warning: ineffectual assignment to err (ineffassign)
    • Line 168: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!