Preparing report...

Report for github.com/mef13/flussonic_exporter

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


golint25%

Golint is a linter for Go source code.

    • flussonic_exporter/collector/collector.go
    • Line 110: warning: exported type FlussonicCollector should have comment or be unexported (golint)
    • Line 140: warning: exported function NewCollector should have comment or be unexported (golint)
    • Line 167: warning: exported method FlussonicCollector.Scrape should have comment or be unexported (golint)
    • Line 334: warning: exported method FuncJob.Run should have comment or be unexported (golint)
    • Line 336: warning: exported method FlussonicCollector.GetCronJob should have comment or be unexported (golint)
    • flussonic_exporter/logger/logger.go
    • Line 37: warning: exported function InitLogger should have comment or be unexported (golint)
    • Line 133: warning: exported function GetLogger should have comment or be unexported (golint)
    • Line 137: warning: exported function Debug should have comment or be unexported (golint)
    • Line 140: warning: exported function Info should have comment or be unexported (golint)
    • Line 143: warning: exported function Warn should have comment or be unexported (golint)
    • Line 146: warning: exported function Error should have comment or be unexported (golint)
    • Line 149: warning: exported function DPanic should have comment or be unexported (golint)
    • Line 152: warning: exported function Panic should have comment or be unexported (golint)
    • Line 155: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 158: warning: exported function Sync should have comment or be unexported (golint)
    • flussonic_exporter/flussonic/media.go
    • Line 27: warning: exported type Media should have comment or be unexported (golint)
    • Line 33: warning: exported type Stream should have comment or be unexported (golint)
    • Line 39: warning: exported type Stats should have comment or be unexported (golint)
    • Line 51: warning: exported type MediaInfo should have comment or be unexported (golint)
    • Line 57: warning: exported type Tracks should have comment or be unexported (golint)
    • Line 62: warning: exported type Options should have comment or be unexported (golint)
    • Line 68: warning: exported method Flussonic.GetMedia should have comment or be unexported (golint)
    • flussonic_exporter/flussonic/sessions.go
    • Line 27: warning: exported type Sessions should have comment or be unexported (golint)
    • Line 34: warning: exported type MediaSessions should have comment or be unexported (golint)
    • Line 41: warning: exported method Flussonic.GetSessions 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!