Preparing report...

Report for github.com/dh1tw/remoteRotator

A+    Excellent!    Found 11 issues across 30 files

Tweet

gofmt96%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo80%

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.


golint80%

Golint is a linter for Go source code.

    • remoteRotator/rotator/json.go
    • Line 3: warning: exported type AzimuthGet should have comment or be unexported (golint)
    • Line 9: warning: exported type AzimuthPut should have comment or be unexported (golint)
    • Line 13: warning: exported type ElevationGet should have comment or be unexported (golint)
    • Line 19: warning: exported type ElevationPut should have comment or be unexported (golint)
    • Line 23: warning: exported type Object should have comment or be unexported (golint)
    • Line 29: warning: exported type Heading should have comment or be unexported (golint)
    • Line 36: warning: exported type Objects should have comment or be unexported (golint)
    • Line 38: warning: exported type Config should have comment or be unexported (golint)
    • remoteRotator/rotator/sb_proxy/options.go
    • Line 1: warning: don't use MixedCaps in package name; sbProxy should be sbproxy (golint)
    • Line 8: warning: exported function Client should have comment or be unexported (golint)
    • Line 23: warning: exported function Name should have comment or be unexported (golint)
    • Line 29: warning: exported function ServiceName should have comment or be unexported (golint)
    • remoteRotator/rotator/sb_proxy/proxy.go
    • Line 1: warning: don't use MixedCaps in package name; sbProxy should be sbproxy (golint)
    • Line 14: warning: exported type SbProxy should have comment or be unexported (golint)
    • Line 128: warning: exported method SbProxy.Name should have comment or be unexported (golint)
    • Line 134: warning: exported method SbProxy.HasAzimuth should have comment or be unexported (golint)
    • Line 140: warning: exported method SbProxy.HasElevation should have comment or be unexported (golint)
    • Line 146: warning: exported method SbProxy.Azimuth should have comment or be unexported (golint)
    • Line 152: warning: exported method SbProxy.AzPreset should have comment or be unexported (golint)
    • Line 158: warning: exported method SbProxy.Elevation should have comment or be unexported (golint)
    • Line 164: warning: exported method SbProxy.ElPreset should have comment or be unexported (golint)
    • Line 170: warning: exported method SbProxy.SetAzimuth should have comment or be unexported (golint)
    • Line 175: warning: exported method SbProxy.SetElevation should have comment or be unexported (golint)
    • Line 180: warning: exported method SbProxy.StopAzimuth should have comment or be unexported (golint)
    • Line 185: warning: exported method SbProxy.StopElevation should have comment or be unexported (golint)
    • Line 190: warning: exported method SbProxy.Stop should have comment or be unexported (golint)
    • Line 226: warning: exported method SbProxy.Close should have comment or be unexported (golint)
    • remoteRotator/hub/hub.go
    • Line 298: warning: exported type Event should have comment or be unexported (golint)
    • Line 304: warning: exported type RotatorEvent should have comment or be unexported (golint)
    • Line 307: warning: exported const AddRotator should have comment (or a comment on this block) or be unexported (golint)
    • remoteRotator/rotator/proxy/rotator_proxy.go
    • Line 170: warning: exported method Proxy.Close should have comment or be unexported (golint)
    • Line 222: warning: exported method Proxy.Name should have comment or be unexported (golint)
    • Line 228: warning: exported method Proxy.HasAzimuth should have comment or be unexported (golint)
    • Line 234: warning: exported method Proxy.HasElevation should have comment or be unexported (golint)
    • Line 240: warning: exported method Proxy.Azimuth should have comment or be unexported (golint)
    • Line 246: warning: exported method Proxy.AzPreset should have comment or be unexported (golint)
    • Line 252: warning: exported method Proxy.SetAzimuth should have comment or be unexported (golint)
    • Line 263: warning: exported method Proxy.Elevation should have comment or be unexported (golint)
    • Line 269: warning: exported method Proxy.ElPreset should have comment or be unexported (golint)
    • Line 275: warning: exported method Proxy.SetElevation should have comment or be unexported (golint)
    • Line 286: warning: exported method Proxy.StopAzimuth should have comment or be unexported (golint)
    • Line 293: warning: exported method Proxy.StopElevation should have comment or be unexported (golint)
    • Line 299: warning: exported method Proxy.Stop should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell93%

Misspell Finds commonly misspelled English words