Preparing report...

Report for github.com/soyersoyer/rightana

A+    Excellent!    Found 3 issues across 36 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!


gocyclo97%

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.

    • rightana/internal/db/stat.go
    • Line 448: warning: cyclomatic complexity 26 of function (*sessionFilter).match() is high (> 15) (gocyclo)
    • Line 394: warning: cyclomatic complexity 16 of function createSessionFilter() is high (> 15) (gocyclo)

golint94%

Golint is a linter for Go source code.

    • rightana/internal/db/shardbolt/db.go
    • Line 18: warning: exported type DB should have comment or be unexported (golint)
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported function Open should have comment or be unexported (golint)
    • Line 79: warning: exported method DB.Close should have comment or be unexported (golint)
    • Line 92: warning: exported method DB.DeleteShard should have comment or be unexported (golint)
    • Line 113: warning: exported method DB.Iterate should have comment or be unexported (golint)
    • Line 131: warning: exported method DB.IteratePrefix should have comment or be unexported (golint)
    • Line 149: warning: exported method DB.Get should have comment or be unexported (golint)
    • Line 167: warning: exported method DB.Update should have comment or be unexported (golint)
    • Line 187: warning: exported method DB.BatchUpsert should have comment or be unexported (golint)
    • Line 202: warning: exported type ShardSize should have comment or be unexported (golint)
    • Line 207: warning: exported method DB.GetSizes should have comment or be unexported (golint)
    • rightana/internal/db/shardbolt/tx.go
    • Line 9: warning: exported type MultiTx should have comment or be unexported (golint)
    • Line 20: warning: exported method DB.Begin should have comment or be unexported (golint)
    • Line 24: warning: exported method MultiTx.Rollback should have comment or be unexported (golint)
    • Line 36: warning: exported method MultiTx.Commit should have comment or be unexported (golint)
    • Line 48: warning: exported method MultiTx.Put should have comment or be unexported (golint)

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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!