Preparing report...

Report for github.com/reef-pi/rpi

A+    Excellent!    Found 11 issues across 23 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!


golint52%

Golint is a linter for Go source code.

    • rpi/i2c/i2c.go
    • Line 22: warning: exported type Fd should have comment or be unexported (golint)
    • Line 39: warning: exported type Bus should have comment or be unexported (golint)
    • Line 54: warning: exported function New should have comment or be unexported (golint)
    • rpi/hal/pwm.go
    • Line 51: warning: receiver name ch should be consistent with previous receiver name p for channel (golint)
    • Line 52: warning: receiver name ch should be consistent with previous receiver name p for channel (golint)
    • Line 56: warning: receiver name ch should be consistent with previous receiver name p for channel (golint)
    • rpi/gpio/detect.go
    • Line 18: warning: exported function DetectBase should have comment or be unexported (golint)
    • Line 42: warning: exported function Mmap should have comment or be unexported (golint)
    • rpi/gpio/pin.go
    • Line 3: warning: exported type Pin should have comment or be unexported (golint)
    • Line 8: warning: comment on exported method Pin.Input should be of the form "Input ..." (golint)
    • Line 13: warning: comment on exported method Pin.Output should be of the form "Output ..." (golint)
    • Line 18: warning: comment on exported method Pin.High should be of the form "High ..." (golint)
    • Line 23: warning: comment on exported method Pin.Low should be of the form "Low ..." (golint)
    • Line 28: warning: comment on exported method Pin.Pull should be of the form "Pull ..." (golint)
    • Line 33: warning: comment on exported method Pin.PullUp should be of the form "PullUp ..." (golint)
    • Line 38: warning: comment on exported method Pin.PullDown should be of the form "PullDown ..." (golint)
    • Line 43: warning: comment on exported method Pin.PullOff should be of the form "PullOff ..." (golint)
    • Line 48: warning: comment on exported method Pin.Direction should be of the form "Direction ..." (golint)
    • Line 64: warning: exported method Pin.PullMode should have comment or be unexported (golint)
    • rpi/gpio/driver.go
    • Line 10: warning: exported type Direction should have comment or be unexported (golint)
    • Line 13: warning: exported const Input should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type State should have comment or be unexported (golint)
    • Line 20: warning: exported const Low should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type Pull should have comment or be unexported (golint)
    • Line 27: warning: exported const PullOff should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Driver should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function CreateFromMmap should be of the form "CreateFromMmap ..." (golint)
    • Line 59: warning: exported method Driver.Pin should have comment or be unexported (golint)
    • Line 63: warning: exported method Driver.PinDirection should have comment or be unexported (golint)
    • Line 78: warning: exported method Driver.WriteToPin should have comment or be unexported (golint)
    • Line 91: warning: exported method Driver.ReadFromPin should have comment or be unexported (golint)
    • Line 100: warning: exported method Driver.PinPullMode should have comment or be unexported (golint)
    • rpi/pwm/driver.go
    • Line 15: warning: exported const SysFS should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Driver should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • rpi/hal/driver.go
    • Line 11: warning: exported type DigitalPin should have comment or be unexported (golint)
    • Line 39: warning: exported type PinFactory should have comment or be unexported (golint)
    • Line 41: warning: receiver name d should be consistent with previous receiver name r for driver (golint)
    • rpi/hal/linux.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • rpi/hal/noop.go
    • Line 13: warning: exported function NoopPinFactory 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!