Preparing report...

Report for github.com/paidgeek/go-buffer-objects

A+    Excellent!    Found 1 issues across 1 files

Tweet

gofmt99%

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


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!


gocyclo99%

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.

    • go-buffer-objects/main.go
    • Line 373: warning: cyclomatic complexity 17 of function baseSizeOf() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 17 of function main() is high (> 15) (gocyclo)

golint99%

Golint is a linter for Go source code.

    • go-buffer-objects/main.go
    • Line 25: warning: exported type Field should have comment or be unexported (golint)
    • Line 35: warning: exported type Object should have comment or be unexported (golint)
    • Line 43: warning: exported type Document should have comment or be unexported (golint)
    • Line 54: warning: exported var ErrTooManyObjects should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • go-buffer-objects/main.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/paidgeek/bufobjects/bindata (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/emirpasic/gods/sets (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/emirpasic/gods/sets/hashset (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • Line 69: warning: undeclared name: yaml (ineffassign)
    • Line 70: warning: undeclared name: yaml (ineffassign)
    • Line 20: warning: "gopkg.in/yaml.v2" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!