Preparing report...

Report for github.com/clambin/tado-exporter

A+    Excellent!    Found 13 issues across 36 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!


gocyclo97%

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.


golint72%

Golint is a linter for Go source code.

    • tado-exporter/test/server/mockapi/mockapi.go
    • Line 14: warning: exported method MockAPI.GetZones should have comment or be unexported (golint)
    • Line 21: warning: exported method MockAPI.GetZoneInfo should have comment or be unexported (golint)
    • Line 60: warning: exported method MockAPI.GetWeatherInfo should have comment or be unexported (golint)
    • Line 68: warning: exported method MockAPI.GetMobileDevices should have comment or be unexported (golint)
    • Line 85: warning: exported method MockAPI.SetZoneOverlay should have comment or be unexported (golint)
    • Line 97: warning: exported method MockAPI.DeleteZoneOverlay should have comment or be unexported (golint)
    • tado-exporter/internal/controller/models/zonestate.go
    • Line 8: warning: exported type ZoneStateEnum should have comment or be unexported (golint)
    • Line 11: warning: exported const ZoneUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type ZoneState should have comment or be unexported (golint)
    • Line 34: warning: exported method ZoneState.Equals should have comment or be unexported (golint)
    • Line 38: warning: exported function GetZoneState should have comment or be unexported (golint)
    • tado-exporter/internal/controller/poller/poller.go
    • Line 9: warning: exported type Poller should have comment or be unexported (golint)
    • Line 13: warning: exported type Update should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported method Poller.Update should have comment or be unexported (golint)
    • tado-exporter/internal/controller/models/zoneconfig.go
    • Line 5: warning: exported type ZoneConfig should have comment or be unexported (golint)
    • Line 11: warning: exported type ZoneAutoAwayConfig should have comment or be unexported (golint)
    • Line 17: warning: exported type ZoneLimitOverlayConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type ZoneNightTimeConfig should have comment or be unexported (golint)
    • Line 27: warning: exported type ZoneNightTimestamp should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!