Preparing report...

Report for github.com/electricbubble/gwda

A+    Excellent!    Found 6 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!


golint76%

Golint is a linter for Go source code.

    • gwda/action.go
    • Line 8: warning: exported type W3CActions should have comment or be unexported (golint)
    • Line 10: warning: exported function NewW3CActions should have comment or be unexported (golint)
    • Line 18: warning: exported method W3CActions.SendKeys should have comment or be unexported (golint)
    • Line 49: warning: exported method W3CActions.FingerAction should have comment or be unexported (golint)
    • Line 59: warning: exported type FingerAction should have comment or be unexported (golint)
    • Line 61: warning: exported function NewFingerAction should have comment or be unexported (golint)
    • Line 69: warning: exported type FingerMove should have comment or be unexported (golint)
    • Line 71: warning: exported function NewFingerMove should have comment or be unexported (golint)
    • Line 75: warning: exported method FingerMove.WithXY should have comment or be unexported (golint)
    • Line 81: warning: exported method FingerMove.WithXYFloat should have comment or be unexported (golint)
    • Line 87: warning: exported method FingerMove.WithOrigin should have comment or be unexported (golint)
    • Line 92: warning: exported method FingerMove.WithDuration should have comment or be unexported (golint)
    • Line 97: warning: exported method FingerAction.Move should have comment or be unexported (golint)
    • Line 102: warning: exported method FingerAction.Down should have comment or be unexported (golint)
    • Line 107: warning: exported method FingerAction.Up should have comment or be unexported (golint)
    • Line 112: warning: exported method FingerAction.Pause should have comment or be unexported (golint)
    • Line 124: warning: exported method W3CActions.Tap should have comment or be unexported (golint)
    • Line 137: warning: exported method W3CActions.DoubleTap should have comment or be unexported (golint)
    • Line 154: warning: exported method W3CActions.Press should have comment or be unexported (golint)
    • Line 167: warning: exported method W3CActions.Swipe should have comment or be unexported (golint)
    • Line 184: warning: exported method W3CActions.SwipeFloat should have comment or be unexported (golint)
    • Line 203: warning: exported type TouchActions should have comment or be unexported (golint)
    • Line 205: warning: exported function NewTouchActions should have comment or be unexported (golint)
    • Line 213: warning: exported method TouchActions.MoveTo should have comment or be unexported (golint)
    • Line 222: warning: exported method TouchActions.Tap should have comment or be unexported (golint)
    • Line 231: warning: exported method TouchActions.Press should have comment or be unexported (golint)
    • Line 240: warning: exported method TouchActions.LongPress should have comment or be unexported (golint)
    • Line 249: warning: exported method TouchActions.Wait should have comment or be unexported (golint)
    • Line 261: warning: exported method TouchActions.Release should have comment or be unexported (golint)
    • Line 267: warning: exported method TouchActions.Cancel should have comment or be unexported (golint)
    • Line 273: warning: exported type TouchActionMoveTo should have comment or be unexported (golint)
    • Line 275: warning: exported function NewTouchActionMoveTo should have comment or be unexported (golint)
    • Line 279: warning: exported method TouchActionMoveTo.WithXY should have comment or be unexported (golint)
    • Line 285: warning: exported method TouchActionMoveTo.WithXYFloat should have comment or be unexported (golint)
    • Line 291: warning: exported method TouchActionMoveTo.WithElement should have comment or be unexported (golint)
    • Line 296: warning: exported type TouchActionTap should have comment or be unexported (golint)
    • Line 298: warning: exported function NewTouchActionTap should have comment or be unexported (golint)
    • Line 302: warning: exported method TouchActionTap.WithXY should have comment or be unexported (golint)
    • Line 308: warning: exported method TouchActionTap.WithXYFloat should have comment or be unexported (golint)
    • Line 314: warning: exported method TouchActionTap.WithElement should have comment or be unexported (golint)
    • Line 319: warning: exported method TouchActionTap.WithCount should have comment or be unexported (golint)
    • Line 324: warning: exported type TouchActionPress should have comment or be unexported (golint)
    • Line 326: warning: exported function NewTouchActionPress should have comment or be unexported (golint)
    • Line 330: warning: exported method TouchActionPress.WithXY should have comment or be unexported (golint)
    • Line 336: warning: exported method TouchActionPress.WithXYFloat should have comment or be unexported (golint)
    • Line 342: warning: exported method TouchActionPress.WithElement should have comment or be unexported (golint)
    • Line 347: warning: exported method TouchActionPress.WithPressure should have comment or be unexported (golint)
    • Line 352: warning: exported type TouchActionLongPress should have comment or be unexported (golint)
    • Line 354: warning: exported function NewTouchActionLongPress should have comment or be unexported (golint)
    • Line 358: warning: exported method TouchActionLongPress.WithXY should have comment or be unexported (golint)
    • Line 364: warning: exported method TouchActionLongPress.WithXYFloat should have comment or be unexported (golint)
    • Line 370: warning: exported method TouchActionLongPress.WithElement should have comment or be unexported (golint)
    • gwda/device.go
    • Line 8: warning: exported type Device should have comment or be unexported (golint)
    • Line 17: warning: exported function DeviceList should have comment or be unexported (golint)
    • Line 41: warning: exported method Device.DeviceID should have comment or be unexported (golint)
    • Line 45: warning: exported method Device.SerialNumber should have comment or be unexported (golint)
    • gwda/driver.go
    • Line 42: warning: exported function NewUSBDriver should have comment or be unexported (golint)
    • gwda/gwda.go
    • Line 25: warning: exported var DefaultWaitTimeout should have comment or be unexported (golint)
    • Line 26: warning: exported var DefaultWaitInterval should have comment or be unexported (golint)
    • Line 214: warning: exported type AlertAction should have comment or be unexported (golint)
    • Line 217: warning: exported const AlertActionAccept should have comment (or a comment on this block) or be unexported (golint)
    • Line 221: warning: exported type Capabilities should have comment or be unexported (golint)
    • Line 223: warning: exported function NewCapabilities should have comment or be unexported (golint)
    • Line 227: warning: exported method Capabilities.WithAppLaunchOption should have comment or be unexported (golint)
    • Line 234: warning: comment on exported method Capabilities.WithDefaultAlertAction should be of the form "WithDefaultAlertAction ..." (golint)
    • Line 240: warning: comment on exported method Capabilities.WithMaxTypingFrequency should be of the form "WithMaxTypingFrequency ..." (golint)
    • Line 250: warning: comment on exported method Capabilities.WithWaitForIdleTimeout should be of the form "WithWaitForIdleTimeout ..." (golint)
    • Line 279: warning: comment on exported method Capabilities.WithShouldUseSingletonTestManager should be of the form "WithShouldUseSingletonTestManager ..." (golint)
    • Line 286: warning: comment on exported method Capabilities.WithDisableAutomaticScreenshots should be of the form "WithDisableAutomaticScreenshots ..." (golint)
    • Line 293: warning: comment on exported method Capabilities.WithShouldTerminateApp should be of the form "WithShouldTerminateApp ..." (golint)
    • Line 300: warning: comment on exported method Capabilities.WithEventloopIdleDelaySec should be of the form "WithEventloopIdleDelaySec ..." (golint)
    • Line 308: warning: exported type SessionInfo should have comment or be unexported (golint)
    • Line 318: warning: exported type DeviceStatus should have comment or be unexported (golint)
    • Line 338: warning: exported type DeviceInfo should have comment or be unexported (golint)
    • Line 349: warning: exported type Location should have comment or be unexported (golint)
    • Line 356: warning: exported type BatteryInfo should have comment or be unexported (golint)
    • Line 364: warning: exported type BatteryState should have comment or be unexported (golint)
    • Line 368: warning: exported const BatteryStateUnplugged should have comment (or a comment on this block) or be unexported (golint)
    • Line 386: warning: exported type Size should have comment or be unexported (golint)
    • Line 391: warning: exported type Screen should have comment or be unexported (golint)
    • Line 396: warning: exported type AppInfo should have comment or be unexported (golint)
    • Line 405: warning: exported type AppBaseInfo should have comment or be unexported (golint)
    • Line 410: warning: exported type AppState should have comment or be unexported (golint)
    • Line 413: warning: exported const AppStateNotRunning should have comment (or a comment on this block) or be unexported (golint)
    • Line 434: warning: exported function NewAppLaunchOption should have comment or be unexported (golint)
    • Line 437: warning: exported method AppLaunchOption.WithBundleId should have comment or be unexported (golint)
    • Line 467: warning: exported const PasteboardTypePlaintext should have comment (or a comment on this block) or be unexported (golint)
    • Line 473: warning: exported const TextBackspace should have comment (or a comment on this block) or be unexported (golint)
    • Line 487: warning: exported const DeviceButtonHome should have comment (or a comment on this block) or be unexported (golint)
    • Line 492: warning: exported type NotificationType should have comment or be unexported (golint)
    • Line 495: warning: exported const NotificationTypePlain should have comment (or a comment on this block) or be unexported (golint)
    • Line 502: warning: exported const EventPageIDConsumer should have comment or be unexported (golint)
    • Line 508: warning: exported const EventUsageIDCsmrVolumeUp should have comment (or a comment on this block) or be unexported (golint)
    • Line 515: warning: exported type Orientation should have comment or be unexported (golint)
    • Line 531: warning: exported type Rotation should have comment or be unexported (golint)
    • Line 540: warning: exported function NewSourceOption should have comment or be unexported (golint)
    • Line 592: warning: exported type BySelector should have comment or be unexported (golint)
    • Line 634: warning: exported type ElementAttribute should have comment or be unexported (golint)
    • Line 657: warning: exported function NewElementAttribute should have comment or be unexported (golint)
    • Line 716: warning: comment on exported method ElementAttribute.WithVisible should be of the form "WithVisible ..." (golint)
    • Line 735: warning: comment on exported type ElementType should be of the form "ElementType ..." (with optional leading article) (golint)
    • Line 846: warning: exported type Condition should have comment or be unexported (golint)
    • Line 848: warning: exported type Direction should have comment or be unexported (golint)
    • Line 851: warning: exported const DirectionUp should have comment (or a comment on this block) or be unexported (golint)
    • Line 857: warning: exported type PickerWheelOrder should have comment or be unexported (golint)
    • Line 860: warning: exported const PickerWheelOrderNext should have comment (or a comment on this block) or be unexported (golint)
    • Line 864: warning: exported type Point should have comment or be unexported (golint)
    • Line 869: warning: exported type Rect should have comment or be unexported (golint)

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!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!