Preparing report...

Report for github.com/fairDataSociety/fairOS-dfs

(v0.8.1)

A+    Excellent!    Found 31 issues across 207 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • pkg/file/reader.go
    • Line 103: warning: cyclomatic complexity 16 of function (*Reader).Read() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 16 of function (*Reader).ReadLine() is high (> 15) (gocyclo)
    • pkg/api/doc_new.go
    • Line 36: warning: cyclomatic complexity 16 of function (*Handler).DocCreateHandler() is high (> 15) (gocyclo)
    • pkg/collection/document.go
    • Line 1071: warning: cyclomatic complexity 48 of function (*Document).DocBatchPut() is high (> 15) (gocyclo)
    • Line 748: warning: cyclomatic complexity 48 of function (*Document).Find() is high (> 15) (gocyclo)
    • Line 454: warning: cyclomatic complexity 29 of function (*Document).Put() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 26 of function (*Document).Count() is high (> 15) (gocyclo)
    • Line 640: warning: cyclomatic complexity 22 of function (*Document).Del() is high (> 15) (gocyclo)
    • pkg/dir/rmdir.go
    • Line 27: warning: cyclomatic complexity 17 of function (*Directory).RmDir() is high (> 15) (gocyclo)
    • pkg/api/ws.go
    • Line 56: warning: cyclomatic complexity 178 of function (*Handler).handleEvents() is high (> 15) (gocyclo)
    • pkg/file/reader_test.go
    • Line 32: warning: cyclomatic complexity 30 of function TestFileReader() is high (> 15) (gocyclo)
    • Line 291: warning: cyclomatic complexity 28 of function createFileWithNewlines() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!