Preparing report...

Report for github.com/kodek/tesler

A    Great!    Found 13 issues across 13 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!


golint7%

Golint is a linter for Go source code.

    • tesler/recorder/server/recorder.go
    • Line 23: warning: exported function NewRecorder should have comment or be unexported (golint)
    • Line 29: warning: exported const IdleTimeBeforeSleep should have comment or be unexported (golint)
    • Line 30: warning: exported const IdleSamplingFrequency should have comment or be unexported (golint)
    • Line 36: warning: exported method Recorder.RecordWhileVehicleInUse should have comment or be unexported (golint)
    • tesler/recorder/databases/influxdb_database.go
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 106: warning: exported function OpenInfluxDbDatabase should have comment or be unexported (golint)
    • tesler/recorder/car/snapshot.go
    • Line 11: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 28: warning: exported type ChargeSession should have comment or be unexported (golint)
    • Line 37: warning: exported type Bearings should have comment or be unexported (golint)
    • Line 43: warning: exported function NewSnapshot should have comment or be unexported (golint)
    • tesler/common/config.go
    • Line 11: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 15: warning: exported type Recorder should have comment or be unexported (golint)
    • Line 22: warning: exported type Car should have comment or be unexported (golint)
    • Line 27: warning: exported type TeslaAuth should have comment or be unexported (golint)
    • Line 34: warning: exported type InfluxDbConfig should have comment or be unexported (golint)
    • Line 41: warning: exported type PushoverConfig should have comment or be unexported (golint)
    • Line 48: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 69: warning: exported method Configuration.WriteRedacted should have comment or be unexported (golint)
    • tesler/recorder/car/online_status.go
    • Line 13: warning: exported type OnVehicleChangeFunc should have comment or be unexported (golint)
    • Line 15: warning: exported type StateMonitor should have comment or be unexported (golint)
    • Line 21: warning: exported method StateMonitor.AddVehicleChangeListener should have comment or be unexported (golint)
    • Line 25: warning: exported function NewPollingStateMonitor should have comment or be unexported (golint)
    • Line 34: warning: exported method StateMonitor.Poll should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!