Preparing report...

Report for github.com/othalla/plex_exporter

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


golint71%

Golint is a linter for Go source code.

    • plex_exporter/collector/collector.go
    • Line 9: warning: exported type Plex should have comment or be unexported (golint)
    • Line 15: warning: exported function NewPlexMediaServerCollector should have comment or be unexported (golint)
    • Line 33: warning: exported type PlexMediaServerCollector should have comment or be unexported (golint)
    • Line 40: warning: exported method PlexMediaServerCollector.Describe should have comment or be unexported (golint)
    • Line 46: warning: exported method PlexMediaServerCollector.Collect should have comment or be unexported (golint)
    • plex_exporter/collector/plex_media_server.go
    • Line 10: warning: comment on exported const URLSessions should be of the form "URLSessions ..." (golint)
    • Line 12: warning: exported const URLLibrarySections should have comment or be unexported (golint)
    • Line 13: warning: exported const URLLibrarySectionsIDAll should have comment or be unexported (golint)
    • Line 14: warning: exported const URLTranscodeSessions should have comment or be unexported (golint)
    • Line 16: warning: exported type HTTPClient should have comment or be unexported (golint)
    • Line 20: warning: comment on exported type APIStatusSessions should be of the form "APIStatusSessions ..." (with optional leading article) (golint)
    • Line 25: warning: exported type APIStatusSessionsMediaContainer should have comment or be unexported (golint)
    • Line 29: warning: comment on exported type APILibrarySections should be of the form "APILibrarySections ..." (with optional leading article) (golint)
    • Line 34: warning: exported type APILibrarySectionsMediaContainer should have comment or be unexported (golint)
    • Line 38: warning: exported type APILibrarySectionsDirectory should have comment or be unexported (golint)
    • Line 44: warning: comment on exported type APILibrarySectionsIDAll should be of the form "APILibrarySectionsIDAll ..." (with optional leading article) (golint)
    • Line 49: warning: exported type APILibrarySectionsIDAllMediaContainer should have comment or be unexported (golint)
    • Line 53: warning: comment on exported type APITranscodeSessions should be of the form "APITranscodeSessions ..." (with optional leading article) (golint)
    • Line 58: warning: exported type APITranscodeSessionsMediaContainer should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type Library should be of the form "Library ..." (with optional leading article) (golint)
    • Line 69: warning: exported type Directory should have comment or be unexported (golint)
    • Line 71: warning: exported type PlexMediaServer should have comment or be unexported (golint)
    • Line 78: warning: exported method PlexMediaServer.CurrentSessionsCount 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!