Preparing report...

Report for github.com/jkulvich/intelpower

B    Not bad!    Found 12 issues across 14 files

Tweet

gofmt57%

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!


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!


golint42%

Golint is a linter for Go source code.

    • intelpower/intelpower_error.go
    • Line 7: warning: exported const ErrCommon should have comment or be unexported (golint)
    • Line 9: warning: exported type CommonError should have comment or be unexported (golint)
    • Line 13: warning: exported function NewCommonError should have comment or be unexported (golint)
    • intelpower/intelpower_pstate.go
    • Line 8: warning: exported type PStateStatus should have comment or be unexported (golint)
    • Line 11: warning: exported const PStateStatusActive should have comment (or a comment on this block) or be unexported (golint)
    • intelpower/command_error.go
    • Line 7: warning: exported const ErrCommand should have comment or be unexported (golint)
    • Line 9: warning: exported type CommandError should have comment or be unexported (golint)
    • Line 13: warning: exported function NewCommandError should have comment or be unexported (golint)
    • intelpower/cpu_error.go
    • Line 7: warning: exported const ErrCPU should have comment or be unexported (golint)
    • Line 9: warning: exported type CPUError should have comment or be unexported (golint)
    • Line 13: warning: exported function NewCPUError should have comment or be unexported (golint)
    • intelpower/cpu_governor.go
    • Line 7: warning: exported type CPUGovernor should have comment or be unexported (golint)
    • Line 10: warning: exported const CPUGovernorOnDemand should have comment (or a comment on this block) or be unexported (golint)
    • intelpower/cpu_preference.go
    • Line 7: warning: exported type CPUPreference should have comment or be unexported (golint)
    • Line 10: warning: exported const CPUPreferenceDefault should have comment (or a comment on this block) or be unexported (golint)
    • intelpower/intelpower.go
    • Line 18: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 49: warning: exported method IntelPower.GetCPUName 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!