Preparing report...

Report for github.com/lab259/go-rscsrv

A    Great!    Found 13 issues across 23 files

Tweet

gofmt95%

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!


golint47%

Golint is a linter for Go source code.

    • go-rscsrv/service_retrier.go
    • Line 28: warning: exported type StartRetrierReporter should have comment or be unexported (golint)
    • Line 37: warning: exported method FuncStartRetrierReporter.ReportRetrier should have comment or be unexported (golint)
    • go-rscsrv/service_starter_nop.go
    • Line 3: warning: exported type NopStarterReporter should have comment or be unexported (golint)
    • Line 5: warning: exported method NopStarterReporter.BeforeBegin should have comment or be unexported (golint)
    • Line 7: warning: exported method NopStarterReporter.BeforeLoadConfiguration should have comment or be unexported (golint)
    • Line 9: warning: exported method NopStarterReporter.AfterLoadConfiguration should have comment or be unexported (golint)
    • Line 11: warning: exported method NopStarterReporter.BeforeApplyConfiguration should have comment or be unexported (golint)
    • Line 13: warning: exported method NopStarterReporter.AfterApplyConfiguration should have comment or be unexported (golint)
    • Line 16: warning: exported method NopStarterReporter.BeforeStart should have comment or be unexported (golint)
    • Line 18: warning: exported method NopStarterReporter.AfterStart should have comment or be unexported (golint)
    • Line 20: warning: exported method NopStarterReporter.BeforeStop should have comment or be unexported (golint)
    • Line 22: warning: exported method NopStarterReporter.AfterStop should have comment or be unexported (golint)
    • go-rscsrv/examples/gracefully/main.go
    • Line 13: warning: exported type Service2 should have comment or be unexported (golint)
    • Line 17: warning: exported method Service2.Name should have comment or be unexported (golint)
    • Line 21: warning: exported type Service1 should have comment or be unexported (golint)
    • Line 23: warning: exported method Service1.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method Service1.LoadConfiguration should have comment or be unexported (golint)
    • Line 32: warning: exported method Service1.ApplyConfiguration should have comment or be unexported (golint)
    • Line 37: warning: exported method Service1.Restart should have comment or be unexported (golint)
    • Line 41: warning: exported method Service1.Start should have comment or be unexported (golint)
    • Line 46: warning: exported method Service1.Stop should have comment or be unexported (golint)
    • go-rscsrv/examples/srvstarter/main.go
    • Line 9: warning: exported type Service1 should have comment or be unexported (golint)
    • Line 11: warning: exported method Service1.Name should have comment or be unexported (golint)
    • Line 15: warning: exported method Service1.LoadConfiguration should have comment or be unexported (golint)
    • Line 20: warning: exported method Service1.ApplyConfiguration should have comment or be unexported (golint)
    • Line 25: warning: exported method Service1.Restart should have comment or be unexported (golint)
    • Line 29: warning: exported method Service1.Start should have comment or be unexported (golint)
    • Line 34: warning: exported method Service1.Stop should have comment or be unexported (golint)
    • go-rscsrv/examples/signalstarter/main.go
    • Line 12: warning: exported type FakeService should have comment or be unexported (golint)
    • Line 18: warning: exported method FakeService.Name should have comment or be unexported (golint)
    • Line 22: warning: exported method FakeService.LoadConfiguration should have comment or be unexported (golint)
    • Line 27: warning: exported method FakeService.ApplyConfiguration should have comment or be unexported (golint)
    • Line 32: warning: exported method FakeService.Start should have comment or be unexported (golint)
    • Line 37: warning: exported method FakeService.Stop should have comment or be unexported (golint)
    • Line 42: warning: exported type CancellableFakeService should have comment or be unexported (golint)
    • Line 46: warning: exported method CancellableFakeService.StartWithContext should have comment or be unexported (golint)
    • go-rscsrv/service_starter_color.go
    • Line 24: warning: exported type ColorStarterReporter should have comment or be unexported (golint)
    • Line 26: warning: exported var DefaultColorStarterReporter should have comment or be unexported (golint)
    • Line 34: warning: exported method ColorStarterReporter.BeforeBegin should have comment or be unexported (golint)
    • Line 38: warning: exported method ColorStarterReporter.BeforeLoadConfiguration should have comment or be unexported (golint)
    • Line 53: warning: exported method ColorStarterReporter.AfterLoadConfiguration should have comment or be unexported (golint)
    • Line 57: warning: exported method ColorStarterReporter.BeforeApplyConfiguration should have comment or be unexported (golint)
    • Line 61: warning: exported method ColorStarterReporter.AfterApplyConfiguration should have comment or be unexported (golint)
    • Line 65: warning: exported method ColorStarterReporter.BeforeStart should have comment or be unexported (golint)
    • Line 69: warning: exported method ColorStarterReporter.AfterStart should have comment or be unexported (golint)
    • Line 73: warning: exported method ColorStarterReporter.BeforeStop should have comment or be unexported (golint)
    • Line 77: warning: exported method ColorStarterReporter.AfterStop should have comment or be unexported (golint)
    • go-rscsrv/examples/retriers/main.go
    • Line 15: warning: exported type Service2 should have comment or be unexported (golint)
    • Line 19: warning: exported method Service2.Name should have comment or be unexported (golint)
    • Line 23: warning: exported type Service1 should have comment or be unexported (golint)
    • Line 25: warning: exported method Service1.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method Service1.LoadConfiguration should have comment or be unexported (golint)
    • Line 34: warning: exported method Service1.ApplyConfiguration should have comment or be unexported (golint)
    • Line 39: warning: exported method Service1.Restart should have comment or be unexported (golint)
    • Line 43: warning: exported method Service1.Start should have comment or be unexported (golint)
    • Line 51: warning: exported method Service1.Stop should have comment or be unexported (golint)
    • go-rscsrv/configuration_loader_file.go
    • Line 9: warning: exported type FileConfigurationLoader should have comment or be unexported (golint)
    • Line 13: warning: exported function NewFileConfigurationLoader should have comment or be unexported (golint)
    • Line 19: warning: exported method FileConfigurationLoader.Load 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!