Preparing report...

Report for github.com/stevenferrer/packme

A+    Excellent!    Found 10 issues across 17 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!


gocyclo100%

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.

No problems detected. Good job!


golint41%

Golint is a linter for Go source code.

    • packme/item.go
    • Line 8: warning: exported type Item should have comment or be unexported (golint)
    • Line 17: warning: exported function NewItem should have comment or be unexported (golint)
    • Line 30: warning: exported method Item.Desc should have comment or be unexported (golint)
    • Line 34: warning: exported method Item.Length should have comment or be unexported (golint)
    • Line 38: warning: exported method Item.Width should have comment or be unexported (golint)
    • Line 42: warning: exported method Item.Height should have comment or be unexported (golint)
    • Line 46: warning: exported method Item.Volume should have comment or be unexported (golint)
    • Line 50: warning: exported method Item.Dimensions should have comment or be unexported (golint)
    • Line 70: warning: exported method Item.Collision should have comment or be unexported (golint)
    • Line 81: warning: exported type Items should have comment or be unexported (golint)
    • packme/best_fit_packer.go
    • Line 13: warning: exported function NewBestFitPacker should have comment or be unexported (golint)
    • Line 17: warning: exported method BestFitPacker.Pack should have comment or be unexported (golint)
    • packme/box.go
    • Line 8: warning: exported type Box should have comment or be unexported (golint)
    • Line 14: warning: exported function NewBox should have comment or be unexported (golint)
    • Line 22: warning: exported method Box.Desc should have comment or be unexported (golint)
    • Line 26: warning: exported method Box.Volume should have comment or be unexported (golint)
    • Line 30: warning: exported method Box.Dimensions should have comment or be unexported (golint)
    • Line 34: warning: exported method Box.Items should have comment or be unexported (golint)
    • Line 47: warning: exported type Boxes should have comment or be unexported (golint)
    • packme/box_specs.go
    • Line 3: warning: exported type BoxSpec should have comment or be unexported (golint)
    • Line 9: warning: exported function NewBoxSpec should have comment or be unexported (golint)
    • Line 13: warning: exported method BoxSpec.Volume should have comment or be unexported (golint)
    • Line 19: warning: exported type BoxSpecByVolume should have comment or be unexported (golint)
    • packme/point.go
    • Line 5: warning: exported type Point should have comment or be unexported (golint)
    • Line 7: warning: exported function NewPoint should have comment or be unexported (golint)
    • Line 11: warning: exported method Point.X should have comment or be unexported (golint)
    • Line 15: warning: exported method Point.Y should have comment or be unexported (golint)
    • Line 19: warning: exported method Point.Z should have comment or be unexported (golint)
    • packme/axis.go
    • Line 3: warning: exported type Axis should have comment or be unexported (golint)
    • Line 6: warning: exported const AxisX should have comment (or a comment on this block) or be unexported (golint)
    • packme/dimensions.go
    • Line 8: warning: exported function NewDimensions should have comment or be unexported (golint)
    • Line 12: warning: exported method Dimensions.Length should have comment or be unexported (golint)
    • Line 16: warning: exported method Dimensions.Width should have comment or be unexported (golint)
    • Line 20: warning: exported method Dimensions.Height should have comment or be unexported (golint)
    • packme/item_spec.go
    • Line 3: warning: exported type ItemSpec should have comment or be unexported (golint)
    • Line 9: warning: exported function NewItemSpec should have comment or be unexported (golint)
    • Line 13: warning: exported method ItemSpec.Volume should have comment or be unexported (golint)
    • Line 19: warning: exported type ItemSpecByVolume 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!


misspell94%

Misspell Finds commonly misspelled English words