Preparing report...

Report for github.com/codemodify/systemkit-service

A    Great!    Found 7 issues across 11 files

Tweet

gofmt63%

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!


golint63%

Golint is a linter for Go source code.

    • systemkit-service/service_linux-systemd.go
    • Line 26: warning: don't use underscores in Go names; func newServiceFromSERVICE_SystemD should be newServiceFromSERVICESystemD (golint)
    • Line 35: warning: don't use underscores in Go names; func newServiceFromName_SystemD should be newServiceFromNameSystemD (golint)
    • Line 60: warning: don't use underscores in Go names; func newServiceFromPlatformTemplate_SystemD should be newServiceFromPlatformTemplateSystemD (golint)
    • systemkit-service/service_linux-systemv.go
    • Line 25: warning: don't use underscores in Go names; func newServiceFromSERVICE_SystemV should be newServiceFromSERVICESystemV (golint)
    • Line 34: warning: don't use underscores in Go names; func newServiceFromName_SystemV should be newServiceFromNameSystemV (golint)
    • Line 45: warning: don't use underscores in Go names; func newServiceFromPlatformTemplate_SystemV should be newServiceFromPlatformTemplateSystemV (golint)
    • systemkit-service/service_linux-upstart.go
    • Line 25: warning: don't use underscores in Go names; func newServiceFromSERVICE_Upstart should be newServiceFromSERVICEUpstart (golint)
    • Line 34: warning: don't use underscores in Go names; func newServiceFromName_Upstart should be newServiceFromNameUpstart (golint)
    • Line 45: warning: don't use underscores in Go names; func newServiceFromPlatformTemplate_Upstart should be newServiceFromPlatformTemplateUpstart (golint)
    • systemkit-service/helpers/helpers.go
    • Line 10: warning: exported function AsJSONString should have comment or be unexported (golint)
    • Line 18: warning: exported function Is should have comment or be unexported (golint)
    • Line 30: warning: exported function ExecWithArgs should have comment or be unexported (golint)
    • Line 36: warning: exported function IsRoot should have comment or be unexported (golint)
    • Line 48: warning: exported function HomeDir should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words