Preparing report...

Report for github.com/dstotijn/go-notion

(v0.7.0)

A+    Excellent!    Found 6 issues across 20 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!


gocyclo85%

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.

    • block.go
    • Line 864: warning: cyclomatic complexity 38 of function (blockDTO).Block() is high (> 15) (gocyclo)
    • client_test.go
    • Line 3236: warning: cyclomatic complexity 26 of function TestAppendBlockChildren() is high (> 15) (gocyclo)
    • Line 4309: warning: cyclomatic complexity 25 of function TestUpdateBlock() is high (> 15) (gocyclo)
    • Line 3017: warning: cyclomatic complexity 24 of function TestFindBlockChildrenById() is high (> 15) (gocyclo)
    • Line 1316: warning: cyclomatic complexity 19 of function TestUpdateDatabase() is high (> 15) (gocyclo)
    • Line 981: warning: cyclomatic complexity 19 of function TestCreateDatabase() is high (> 15) (gocyclo)
    • Line 3856: warning: cyclomatic complexity 19 of function TestSearch() is high (> 15) (gocyclo)
    • Line 1786: warning: cyclomatic complexity 19 of function TestCreatePage() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 19 of function TestQueryDatabase() is high (> 15) (gocyclo)
    • Line 2234: warning: cyclomatic complexity 19 of function TestUpdatePage() is high (> 15) (gocyclo)
    • Line 4666: warning: cyclomatic complexity 19 of function TestCreateComment() is high (> 15) (gocyclo)
    • Line 4152: warning: cyclomatic complexity 19 of function TestFindBlockByID() is high (> 15) (gocyclo)
    • Line 4904: warning: cyclomatic complexity 17 of function TestFindCommentsByBlockID() is high (> 15) (gocyclo)
    • Line 3687: warning: cyclomatic complexity 17 of function TestListUsers() is high (> 15) (gocyclo)
    • Line 2740: warning: cyclomatic complexity 17 of function TestFindPagePropertyByID() is high (> 15) (gocyclo)
    • Line 4519: warning: cyclomatic complexity 16 of function TestDeleteBlock() is high (> 15) (gocyclo)
    • page.go
    • Line 146: warning: cyclomatic complexity 21 of function (DatabasePageProperty).Value() 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!


misspell85%

Misspell Finds commonly misspelled English words