Preparing report...

Report for github.com/ilya1st/goservicetools

A    Great!    Found 9 issues across 10 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!


gocyclo40%

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.

    • goservicetools/env.go
    • Line 296: warning: cyclomatic complexity 43 of function SetupLog() is high (> 15) (gocyclo)
    • Line 815: warning: cyclomatic complexity 22 of function CheckAppConfig() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 21 of function CheckHTTPConfig() is high (> 15) (gocyclo)
    • goservicetools/appstart.go
    • Line 331: warning: cyclomatic complexity 41 of function AppStop() is high (> 15) (gocyclo)
    • Line 156: warning: cyclomatic complexity 37 of function AppStart() is high (> 15) (gocyclo)
    • goservicetools/http_test.go
    • Line 583: warning: cyclomatic complexity 17 of function TestSetHTTPServeMux() is high (> 15) (gocyclo)
    • Line 730: warning: cyclomatic complexity 17 of function TestStartHTTPServer() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 16 of function TestSetupHTTPServer() is high (> 15) (gocyclo)
    • Line 15: warning: cyclomatic complexity 16 of function TestPrepareHTTPListener() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign10%

IneffAssign detects ineffectual assignments in Go code.

    • goservicetools/setuid.go
    • Line 21: warning: undeclared name: configuration (ineffassign)
    • Line 8: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • Line 21: warning: undeclared name: configuration (ineffassign)
    • Line 8: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • goservicetools/env_test.go
    • Line 252: warning: undeclared name: configuration (ineffassign)
    • Line 274: warning: undeclared name: configuration (ineffassign)
    • Line 302: warning: undeclared name: configuration (ineffassign)
    • Line 275: warning: undeclared name: configuration (ineffassign)
    • Line 303: warning: undeclared name: configuration (ineffassign)
    • Line 432: warning: undeclared name: configuration (ineffassign)
    • Line 433: warning: undeclared name: configuration (ineffassign)
    • Line 501: warning: undeclared name: configuration (ineffassign)
    • Line 502: warning: undeclared name: configuration (ineffassign)
    • Line 569: warning: undeclared name: configuration (ineffassign)
    • Line 570: warning: undeclared name: configuration (ineffassign)
    • Line 649: warning: undeclared name: configuration (ineffassign)
    • Line 665: warning: undeclared name: configuration (ineffassign)
    • Line 673: warning: undeclared name: configuration (ineffassign)
    • Line 666: warning: undeclared name: configuration (ineffassign)
    • Line 674: warning: undeclared name: configuration (ineffassign)
    • Line 710: warning: undeclared name: configuration (ineffassign)
    • Line 725: warning: undeclared name: configuration (ineffassign)
    • Line 735: warning: undeclared name: configuration (ineffassign)
    • Line 726: warning: undeclared name: configuration (ineffassign)
    • Line 727: warning: undeclared name: configuration (ineffassign)
    • Line 736: warning: undeclared name: configuration (ineffassign)
    • Line 768: warning: undeclared name: configuration (ineffassign)
    • Line 769: warning: undeclared name: configuration (ineffassign)
    • Line 794: warning: undeclared name: configuration (ineffassign)
    • Line 809: warning: undeclared name: configuration (ineffassign)
    • Line 836: warning: undeclared name: configuration (ineffassign)
    • Line 863: warning: undeclared name: configuration (ineffassign)
    • Line 810: warning: undeclared name: configuration (ineffassign)
    • Line 837: warning: undeclared name: configuration (ineffassign)
    • Line 864: warning: undeclared name: configuration (ineffassign)
    • Line 888: warning: undeclared name: configuration (ineffassign)
    • Line 898: warning: undeclared name: configuration (ineffassign)
    • Line 911: warning: undeclared name: configuration (ineffassign)
    • Line 929: warning: undeclared name: configuration (ineffassign)
    • Line 901: warning: undeclared name: configuration (ineffassign)
    • Line 914: warning: undeclared name: configuration (ineffassign)
    • Line 932: warning: undeclared name: configuration (ineffassign)
    • Line 956: warning: undeclared name: configuration (ineffassign)
    • Line 965: warning: undeclared name: configuration (ineffassign)
    • Line 974: warning: undeclared name: configuration (ineffassign)
    • Line 995: warning: undeclared name: configuration (ineffassign)
    • Line 1004: warning: undeclared name: configuration (ineffassign)
    • Line 1042: warning: undeclared name: configuration (ineffassign)
    • Line 1137: warning: undeclared name: configuration (ineffassign)
    • Line 1151: warning: undeclared name: configuration (ineffassign)
    • Line 1169: warning: undeclared name: configuration (ineffassign)
    • Line 1154: warning: undeclared name: configuration (ineffassign)
    • Line 1172: warning: undeclared name: configuration (ineffassign)
    • Line 16: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • goservicetools/http_test.go
    • Line 18: warning: undeclared name: configuration (ineffassign)
    • Line 20: warning: undeclared name: configuration (ineffassign)
    • Line 44: warning: undeclared name: configuration (ineffassign)
    • Line 184: warning: undeclared name: configuration (ineffassign)
    • Line 208: warning: undeclared name: configuration (ineffassign)
    • Line 314: warning: undeclared name: configuration (ineffassign)
    • Line 338: warning: undeclared name: configuration (ineffassign)
    • Line 361: warning: undeclared name: configuration (ineffassign)
    • Line 389: warning: undeclared name: configuration (ineffassign)
    • Line 454: warning: undeclared name: configuration (ineffassign)
    • Line 478: warning: undeclared name: configuration (ineffassign)
    • Line 501: warning: undeclared name: configuration (ineffassign)
    • Line 584: warning: undeclared name: configuration (ineffassign)
    • Line 608: warning: undeclared name: configuration (ineffassign)
    • Line 631: warning: undeclared name: configuration (ineffassign)
    • Line 732: warning: undeclared name: configuration (ineffassign)
    • Line 756: warning: undeclared name: configuration (ineffassign)
    • Line 779: warning: undeclared name: configuration (ineffassign)
    • Line 11: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • goservicetools/appstart.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/ilya1st/configuration-go (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/ilya1st/configuration-go (invalid package name: "") (ineffassign)
    • goservicetools/http.go
    • Line 38: warning: undeclared name: configuration (ineffassign)
    • Line 130: warning: undeclared name: configuration (ineffassign)
    • Line 15: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • Line 38: warning: undeclared name: configuration (ineffassign)
    • Line 130: warning: undeclared name: configuration (ineffassign)
    • Line 15: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • goservicetools/env.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/theckman/go-flock (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/ilya1st/rotatewriter (invalid package name: "") (ineffassign)
    • Line 24: warning: could not import github.com/rs/zerolog (invalid package name: "") (ineffassign)
    • Line 252: warning: undeclared name: configuration (ineffassign)
    • Line 296: warning: undeclared name: configuration (ineffassign)
    • Line 551: warning: undeclared name: flock (ineffassign)
    • Line 571: warning: undeclared name: configuration (ineffassign)
    • Line 592: warning: undeclared name: configuration (ineffassign)
    • Line 631: warning: undeclared name: configuration (ineffassign)
    • Line 701: warning: undeclared name: configuration (ineffassign)
    • Line 728: warning: undeclared name: configuration (ineffassign)
    • Line 755: warning: undeclared name: configuration (ineffassign)
    • Line 815: warning: undeclared name: configuration (ineffassign)
    • Line 306: warning: undeclared name: configuration (ineffassign)
    • Line 615: warning: undeclared name: flock (ineffassign)
    • Line 825: warning: undeclared name: configuration (ineffassign)
    • Line 841: warning: undeclared name: configuration (ineffassign)
    • Line 859: warning: undeclared name: configuration (ineffassign)
    • Line 16: warning: "github.com/theckman/go-flock" imported but not used (ineffassign)
    • Line 20: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • Line 16: warning: could not import github.com/theckman/go-flock (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/ilya1st/rotatewriter (invalid package name: "") (ineffassign)
    • Line 24: warning: could not import github.com/rs/zerolog (invalid package name: "") (ineffassign)
    • Line 252: warning: undeclared name: configuration (ineffassign)
    • Line 296: warning: undeclared name: configuration (ineffassign)
    • Line 551: warning: undeclared name: flock (ineffassign)
    • Line 571: warning: undeclared name: configuration (ineffassign)
    • Line 592: warning: undeclared name: configuration (ineffassign)
    • Line 631: warning: undeclared name: configuration (ineffassign)
    • Line 701: warning: undeclared name: configuration (ineffassign)
    • Line 728: warning: undeclared name: configuration (ineffassign)
    • Line 755: warning: undeclared name: configuration (ineffassign)
    • Line 815: warning: undeclared name: configuration (ineffassign)
    • Line 306: warning: undeclared name: configuration (ineffassign)
    • Line 615: warning: undeclared name: flock (ineffassign)
    • Line 825: warning: undeclared name: configuration (ineffassign)
    • Line 841: warning: undeclared name: configuration (ineffassign)
    • Line 859: warning: undeclared name: configuration (ineffassign)
    • Line 20: warning: "github.com/ilya1st/configuration-go" imported but not used (ineffassign)
    • Line 16: warning: "github.com/theckman/go-flock" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!