Preparing report...

Report for github.com/nak3/go-lvm

A+    Excellent!    Found 2 issues across 4 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!


golint75%

Golint is a linter for Go source code.

    • go-lvm/liblvm.go
    • Line 104: warning: don't use underscores in Go names; func parameter pv_name should be pvName (golint)
    • Line 105: warning: don't use underscores in Go names; func parameter data_alignment should be dataAlignment (golint)
    • Line 105: warning: don't use underscores in Go names; func parameter data_alignment_offset should be dataAlignmentOffset (golint)
    • Line 106: warning: don't use underscores in Go names; var pv_params should be pvParams (golint)
    • Line 126: warning: don't use underscores in Go names; func parameter pv_name should be pvName (golint)
    • Line 310: warning: don't use underscores in Go names; var prop_value should be propValue (golint)
    • Line 316: warning: comment on exported method VgObject.GetPvCont should be of the form "GetPvCont ..." (golint)
    • Line 326: warning: comment on exported method VgObject.GetMaxLV should be of the form "GetMaxLV ..." (golint)
    • Line 358: warning: don't use underscores in Go names; func lv_from_N should be lvFromN (golint)
    • Line 369: warning: comment on exported method VgObject.LvFromName should be of the form "LvFromName ..." (golint)
    • Line 396: warning: don't use underscores in Go names; func pv_from_N should be pvFromN (golint)
    • Line 404: warning: comment on exported method VgObject.PvFromName should be of the form "PvFromName ..." (golint)
    • Line 512: warning: don't use underscores in Go names; struct field signed_integer should be signedInteger (golint)
    • Line 518: warning: don't use underscores in Go names; func get_property should be getProperty (golint)
    • Line 538: warning: don't use underscores in Go names; var prop_value should be propValue (golint)
    • Line 656: warning: comment on exported type PvObject should be of the form "PvObject ..." (with optional leading article) (golint)
    • Line 678: warning: don't use underscores in Go names; var prop_value should be propValue (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!