Preparing report...

Report for github.com/jin06/binlogo

(v1.0.15)

A+    Excellent!    Found 59 issues across 155 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!


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!


golint61%

Golint is a linter for Go source code.

    • test/hello.go
    • Line 7: warning: exported type Model should have comment or be unexported (golint)
    • Line 15: warning: exported type Pipeline should have comment or be unexported (golint)
    • app/server/node/monitor/monitor.go
    • Line 23: warning: exported const STATUS_RUN should have comment or be unexported (golint)
    • Line 24: warning: exported const STATUS_STOP should have comment or be unexported (golint)
    • Line 97: warning: exported method Monitor.Stop should have comment or be unexported (golint)
    • pkg/store/model/pipeline/pipeline.go
    • Line 85: warning: exported function WithPipeDelete should have comment or be unexported (golint)
    • Line 91: warning: exported function WithPipeMode should have comment or be unexported (golint)
    • Line 97: warning: exported function WithAddFilter should have comment or be unexported (golint)
    • Line 103: warning: exported function WithUpdateFilter should have comment or be unexported (golint)
    • pkg/store/etcd/etcd.go
    • Line 15: warning: exported var E should have comment or be unexported (golint)
    • Line 36: warning: exported type ETCD should have comment or be unexported (golint)
    • pkg/mutex/options.go
    • Line 5: warning: exported type Option should have comment or be unexported (golint)
    • Line 7: warning: exported function WithTimeout should have comment or be unexported (golint)
    • app/server/node/node.go
    • Line 37: warning: exported type NodeMode should have comment or be unexported (golint)
    • Line 40: warning: exported const MODE_CLUSTER should have comment (or a comment on this block) or be unexported (golint)
    • pkg/store/model/pipeline/sender.go
    • Line 7: warning: exported const SENDER_TYPE_KAFKA should have comment or be unexported (golint)
    • Line 8: warning: exported const SNEDER_TYPE_STDOUT should have comment or be unexported (golint)
    • Line 9: warning: exported const SNEDER_TYPE_HTTP should have comment or be unexported (golint)
    • Line 11: warning: exported type Sender should have comment or be unexported (golint)
    • Line 19: warning: exported type Kafka should have comment or be unexported (golint)
    • Line 28: warning: exported type Stdout should have comment or be unexported (golint)
    • Line 31: warning: exported type Http should have comment or be unexported (golint)
    • pkg/store/model/node/status.go
    • Line 3: warning: exported type Status should have comment or be unexported (golint)
    • Line 12: warning: exported type StatusOption should have comment or be unexported (golint)
    • Line 14: warning: exported function WithReady should have comment or be unexported (golint)
    • Line 20: warning: exported function WithNetworkUnavailable should have comment or be unexported (golint)
    • Line 26: warning: exported function WithMemoryPressure should have comment or be unexported (golint)
    • Line 32: warning: exported function WithDiskPressure should have comment or be unexported (golint)
    • Line 38: warning: exported function WithCPUPressure should have comment or be unexported (golint)
    • app/server/console/handler/result.go
    • Line 5: warning: exported type Result should have comment or be unexported (golint)
    • Line 11: warning: exported function Success should have comment or be unexported (golint)
    • Line 19: warning: exported function Fail should have comment or be unexported (golint)
    • pkg/store/dao/dao_event/event.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported function EventPrefix should have comment or be unexported (golint)
    • Line 17: warning: exported function PipelinePrefix should have comment or be unexported (golint)
    • Line 21: warning: exported function NodePrefix should have comment or be unexported (golint)
    • Line 25: warning: exported function List should have comment or be unexported (golint)
    • Line 45: warning: exported function Update should have comment or be unexported (golint)
    • Line 58: warning: exported function DeleteRange 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!


misspell99%

Misspell Finds commonly misspelled English words