Preparing report...

Report for github.com/wrfly/et

A+    Excellent!    Found 15 issues across 26 files

Tweet

gofmt92%

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.

    • et/config/config.go
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 37: warning: exported method Config.Example should have comment or be unexported (golint)
    • Line 47: warning: exported method Config.Parse should have comment or be unexported (golint)
    • et/types/notify.go
    • Line 8: warning: exported type OpenEvent should have comment or be unexported (golint)
    • Line 14: warning: exported type Notification should have comment or be unexported (golint)
    • Line 20: warning: exported method Notification.Key should have comment or be unexported (golint)
    • Line 24: warning: exported method Notification.Value should have comment or be unexported (golint)
    • Line 29: warning: exported method Notification.Unmarshal should have comment or be unexported (golint)
    • et/server/asset/asset.go
    • Line 29: warning: don't use underscores in Go names; var _compress_bytes_0 should be _compressBytes0 (golint)
    • Line 31: warning: don't use underscores in Go names; var _file_0 should be _file0 (golint)
    • Line 47: warning: don't use underscores in Go names; var _compress_bytes_1 should be _compressBytes1 (golint)
    • Line 369: warning: don't use underscores in Go names; var _file_1 should be _file1 (golint)
    • Line 385: warning: don't use underscores in Go names; var _compress_bytes_2 should be _compressBytes2 (golint)
    • Line 605: warning: don't use underscores in Go names; var _file_2 should be _file2 (golint)
    • Line 621: warning: don't use underscores in Go names; var _compress_bytes_3 should be _compressBytes3 (golint)
    • Line 767: warning: don't use underscores in Go names; var _file_3 should be _file3 (golint)
    • Line 783: warning: don't use underscores in Go names; var _compress_bytes_4 should be _compressBytes4 (golint)
    • Line 785: warning: don't use underscores in Go names; var _file_4 should be _file4 (golint)
    • Line 801: warning: don't use underscores in Go names; var _compress_bytes_5 should be _compressBytes5 (golint)
    • Line 833: warning: don't use underscores in Go names; var _file_5 should be _file5 (golint)
    • Line 849: warning: don't use underscores in Go names; var _compress_bytes_6 should be _compressBytes6 (golint)
    • Line 881: warning: don't use underscores in Go names; var _file_6 should be _file6 (golint)
    • Line 897: warning: don't use underscores in Go names; var _compress_bytes_7 should be _compressBytes7 (golint)
    • Line 908: warning: don't use underscores in Go names; var _file_7 should be _file7 (golint)
    • Line 924: warning: don't use underscores in Go names; var _compress_bytes_8 should be _compressBytes8 (golint)
    • Line 1023: warning: don't use underscores in Go names; var _file_8 should be _file8 (golint)
    • Line 1039: warning: don't use underscores in Go names; var _compress_bytes_9 should be _compressBytes9 (golint)
    • Line 3071: warning: don't use underscores in Go names; var _file_9 should be _file9 (golint)
    • Line 3087: warning: don't use underscores in Go names; var _compress_bytes_10 should be _compressBytes10 (golint)
    • Line 3143: warning: don't use underscores in Go names; var _file_10 should be _file10 (golint)
    • Line 3159: warning: don't use underscores in Go names; var _compress_bytes_11 should be _compressBytes11 (golint)
    • Line 3236: warning: don't use underscores in Go names; var _file_11 should be _file11 (golint)
    • et/server/api/status.go
    • Line 12: warning: exported method Handler.StatusTask should have comment or be unexported (golint)
    • Line 22: warning: exported method Handler.StatusNotified should have comment or be unexported (golint)
    • et/server/api/handler.go
    • Line 51: warning: exported type Handler should have comment or be unexported (golint)
    • Line 56: warning: exported function New should have comment or be unexported (golint)
    • et/server/api/task.go
    • Line 16: warning: exported method Handler.Open should have comment or be unexported (golint)
    • Line 71: warning: exported method Handler.SubmitTask should have comment or be unexported (golint)
    • Line 116: warning: exported method Handler.ResumeTask should have comment or be unexported (golint)
    • Line 158: warning: exported method Handler.GetTask should have comment or be unexported (golint)
    • et/notify/notify.go
    • Line 10: warning: exported type Notifier should have comment or be unexported (golint)
    • Line 19: warning: exported const NotifyTemplate should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported function ResetSender should have comment or be unexported (golint)
    • Line 57: warning: exported function NewContent should have comment or be unexported (golint)
    • et/limiter/limiter.go
    • Line 22: warning: exported type Limiter should have comment or be unexported (golint)
    • Line 31: warning: comment on exported var IP should be of the form "IP ..." (golint)
    • Line 38: warning: comment on exported var Sent should be of the form "Sent ..." (golint)
    • Line 45: warning: comment on exported var Recv should be of the form "Recv ..." (golint)
    • Line 53: warning: exported method Limiter.Inc should have comment or be unexported (golint)
    • Line 71: warning: exported method Limiter.Dec should have comment or be unexported (golint)
    • Line 77: warning: exported method Limiter.Reset should have comment or be unexported (golint)
    • et/types/task.go
    • Line 10: warning: exported type Task should have comment or be unexported (golint)
    • Line 24: warning: exported method Task.Key should have comment or be unexported (golint)
    • Line 28: warning: exported method Task.Value should have comment or be unexported (golint)
    • Line 33: warning: exported method Task.Unmarshal should have comment or be unexported (golint)
    • Line 37: warning: exported method Task.BadState should have comment or be unexported (golint)
    • et/types/types.go
    • Line 3: warning: exported type RuntimeStatus should have comment or be unexported (golint)
    • Line 8: warning: exported type ServiceStatus should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!