Preparing report...

Report for github.com/documize/community

A+    Excellent!    Found 61 issues across 245 files

Tweet

gofmt96%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • community/domain/test/test.go
    • Line 17: missing ',' before newline in parameter list:1::warning: file is not gofmted with -s (gofmt)
    • Line 18: expected 'IDENT', found '.':1::warning: file is not gofmted with -s (gofmt)

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!


gocyclo88%

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.

    • community/domain/permission/endpoint.go
    • Line 45: warning: cyclomatic complexity 39 of function (*Handler).SetSpacePermissions() is high (> 15) (gocyclo)
    • Line 598: warning: cyclomatic complexity 26 of function (*Handler).SetDocumentPermissions() is high (> 15) (gocyclo)
    • community/domain/page/endpoint.go
    • Line 1328: warning: cyclomatic complexity 54 of function (*Handler).FetchPages() is high (> 15) (gocyclo)
    • Line 325: warning: cyclomatic complexity 32 of function (*Handler).Update() is high (> 15) (gocyclo)
    • Line 886: warning: cyclomatic complexity 24 of function (*Handler).Copy() is high (> 15) (gocyclo)
    • Line 52: warning: cyclomatic complexity 19 of function (*Handler).Add() is high (> 15) (gocyclo)
    • Line 619: warning: cyclomatic complexity 17 of function (*Handler).DeletePages() is high (> 15) (gocyclo)
    • community/domain/document/endpoint.go
    • Line 550: warning: cyclomatic complexity 39 of function (*Handler).FetchDocumentData() is high (> 15) (gocyclo)
    • Line 790: warning: cyclomatic complexity 34 of function (*Handler).Duplicate() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 19 of function (*Handler).Update() is high (> 15) (gocyclo)

golint97%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words