Preparing report...

Report for github.com/adammck/dynamixel

A+    Excellent!    Found 12 issues across 26 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!


golint53%

Golint is a linter for Go source code.

    • dynamixel/servo/xl/xl.go
    • Line 18: warning: exported function NewWithReturnLevel should have comment or be unexported (golint)
    • Line 22: warning: exported var Registers should have comment or be unexported (golint)
    • dynamixel/network/network.go
    • Line 13: warning: comment on exported const BroadcastIdent should be of the form "BroadcastIdent ..." (golint)
    • Line 17: warning: exported type Network should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 78: warning: exported method Network.Flush should have comment or be unexported (golint)
    • dynamixel/servo/servo_accessors.go
    • Line 51: warning: exported method Servo.ModelNumber should have comment or be unexported (golint)
    • Line 55: warning: exported method Servo.FirmwareVersion should have comment or be unexported (golint)
    • Line 59: warning: exported method Servo.ServoID should have comment or be unexported (golint)
    • Line 69: warning: exported method Servo.BaudRate should have comment or be unexported (golint)
    • Line 73: warning: exported method Servo.SetBaudRate should have comment or be unexported (golint)
    • Line 77: warning: exported method Servo.ReturnDelayTime should have comment or be unexported (golint)
    • Line 81: warning: exported method Servo.SetReturnDelayTime should have comment or be unexported (golint)
    • Line 85: warning: exported method Servo.CWAngleLimit should have comment or be unexported (golint)
    • Line 89: warning: exported method Servo.SetCWAngleLimit should have comment or be unexported (golint)
    • Line 93: warning: exported method Servo.CCWAngleLimit should have comment or be unexported (golint)
    • Line 97: warning: exported method Servo.SetCCWAngleLimit should have comment or be unexported (golint)
    • Line 101: warning: exported method Servo.HighestLimitTemperature should have comment or be unexported (golint)
    • Line 105: warning: exported method Servo.SetHighestLimitTemperature should have comment or be unexported (golint)
    • Line 109: warning: exported method Servo.LowestLimitVoltage should have comment or be unexported (golint)
    • Line 113: warning: exported method Servo.SetLowestLimitVoltage should have comment or be unexported (golint)
    • Line 117: warning: exported method Servo.HighestLimitVoltage should have comment or be unexported (golint)
    • Line 121: warning: exported method Servo.SetHighestLimitVoltage should have comment or be unexported (golint)
    • Line 125: warning: exported method Servo.MaxTorque should have comment or be unexported (golint)
    • Line 129: warning: exported method Servo.SetMaxTorque should have comment or be unexported (golint)
    • Line 133: warning: exported method Servo.AlarmLED should have comment or be unexported (golint)
    • Line 137: warning: exported method Servo.SetAlarmLED should have comment or be unexported (golint)
    • Line 141: warning: exported method Servo.AlarmShutdown should have comment or be unexported (golint)
    • Line 145: warning: exported method Servo.SetAlarmShutdown should have comment or be unexported (golint)
    • Line 149: warning: exported method Servo.TorqueEnable should have comment or be unexported (golint)
    • Line 166: warning: comment on exported method Servo.SetLED should be of the form "SetLED ..." (golint)
    • Line 171: warning: exported method Servo.CWComplianceMargin should have comment or be unexported (golint)
    • Line 175: warning: exported method Servo.SetCWComplianceMargin should have comment or be unexported (golint)
    • Line 179: warning: exported method Servo.CCWComplianceMargin should have comment or be unexported (golint)
    • Line 183: warning: exported method Servo.SetCCWComplianceMarginval should have comment or be unexported (golint)
    • Line 187: warning: exported method Servo.CWComplianceSlope should have comment or be unexported (golint)
    • Line 191: warning: exported method Servo.SetCWComplianceSlope should have comment or be unexported (golint)
    • Line 195: warning: exported method Servo.CCWComplianceSlope should have comment or be unexported (golint)
    • Line 199: warning: exported method Servo.SetCCWComplianceSlope should have comment or be unexported (golint)
    • Line 203: warning: exported method Servo.GoalPosition should have comment or be unexported (golint)
    • Line 231: warning: exported method Servo.TorqueLimit should have comment or be unexported (golint)
    • Line 235: warning: exported method Servo.SetTorqueLimit should have comment or be unexported (golint)
    • Line 239: warning: exported method Servo.PresentPosition should have comment or be unexported (golint)
    • Line 243: warning: exported method Servo.PresentSpeed should have comment or be unexported (golint)
    • Line 247: warning: exported method Servo.PresentVoltage should have comment or be unexported (golint)
    • Line 251: warning: exported method Servo.PresentLoad should have comment or be unexported (golint)
    • Line 255: warning: exported method Servo.PresentTemperature should have comment or be unexported (golint)
    • Line 259: warning: exported method Servo.RegisteredInstruction should have comment or be unexported (golint)
    • Line 263: warning: exported method Servo.Moving should have comment or be unexported (golint)
    • Line 267: warning: comment on exported method Servo.Lock should be of the form "Lock ..." (golint)
    • Line 272: warning: exported method Servo.SetLock should have comment or be unexported (golint)
    • dynamixel/servo/servo_highlevel.go
    • Line 14: warning: comment on exported method Servo.SetZero should be of the form "SetZero ..." (golint)
    • Line 19: warning: comment on exported method Servo.Angle should be of the form "Angle ..." (golint)
    • dynamixel/protocol/v2/proto2.go
    • Line 14: warning: comment on exported const Ping should be of the form "Ping ..." (golint)
    • Line 16: warning: exported const ReadData should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported const BroadcastIdent should be of the form "BroadcastIdent ..." (golint)
    • Line 32: warning: exported type Proto2 should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method Proto2.SetBuffered should have comment or be unexported (golint)
    • Line 222: warning: exported method Proto2.WriteData should have comment or be unexported (golint)
    • Line 226: warning: exported method Proto2.RegWrite should have comment or be unexported (golint)
    • dynamixel/iface/iface.go
    • Line 3: warning: comment on exported type Logger should be of the form "Logger ..." (with optional leading article) (golint)
    • dynamixel/registers/register.go
    • Line 3: warning: comment on exported type RegName should be of the form "RegName ..." (with optional leading article) (golint)
    • Line 5: warning: exported type Access should have comment or be unexported (golint)
    • Line 6: warning: exported type Map should have comment or be unexported (golint)
    • Line 8: warning: exported type Register should have comment or be unexported (golint)
    • Line 25: warning: comment on exported const ModelNumber should be of the form "ModelNumber ..." (golint)
    • Line 28: warning: exported const FirmwareVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: comment on exported const RO should be of the form "RO ..." (golint)
    • dynamixel/utils/utils.go
    • Line 37: warning: exported function Low should have comment or be unexported (golint)
    • Line 41: warning: exported function High should have comment or be unexported (golint)
    • dynamixel/protocol/v1/proto1.go
    • Line 13: warning: comment on exported const Ping should be of the form "Ping ..." (golint)
    • Line 15: warning: exported const ReadData should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported const BroadcastIdent should be of the form "BroadcastIdent ..." (golint)
    • Line 26: warning: exported type Proto1 should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported method Proto1.SetBuffered should have comment or be unexported (golint)
    • Line 215: warning: exported method Proto1.WriteData should have comment or be unexported (golint)
    • Line 219: warning: exported method Proto1.RegWrite should have comment or be unexported (golint)
    • dynamixel/servo/servo.go
    • Line 21: warning: exported type Servo should have comment or be unexported (golint)
    • Line 62: warning: comment on exported method Servo.SetBuffered should be of the form "SetBuffered ..." (golint)
    • Line 121: warning: exported method Servo.FetchReturnLevel 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!