Preparing report...

Report for github.com/quarterblue/pulse

(v0.0.0-20211124034319-4d508e7976e8)

A+    Excellent!    Found 4 issues across 6 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!


golint33%

Golint is a linter for Go source code.

    • pulse/pkg/pulse/cli.go
    • Line 11: warning: exported type Cli should have comment or be unexported (golint)
    • Line 15: warning: exported method Cli.Run should have comment or be unexported (golint)
    • pulse/pkg/pulse/node.go
    • Line 12: warning: exported type State should have comment or be unexported (golint)
    • Line 15: warning: comment on exported const Alive should be of the form "Alive ..." (golint)
    • Line 17: warning: comment on exported const Dead should be of the form "Dead ..." (golint)
    • Line 19: warning: comment on exported const Pending should be of the form "Pending ..." (golint)
    • Line 58: warning: comment on exported type FullNode should be of the form "FullNode ..." (with optional leading article) (golint)
    • Line 65: warning: exported type Node should have comment or be unexported (golint)
    • Line 93: warning: exported type Status should have comment or be unexported (golint)
    • Line 100: warning: exported function AddrToIdentifier should have comment or be unexported (golint)
    • Line 104: warning: exported function IdentifierToAddr should have comment or be unexported (golint)
    • Line 109: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 125: warning: comment on exported function CreateNode should be of the form "CreateNode ..." (golint)
    • Line 142: warning: comment on exported method Pulse.StartPulseRes should be of the form "StartPulseRes ..." (golint)
    • Line 162: warning: exported method Pulse.StopPulseRes should have comment or be unexported (golint)
    • Line 170: warning: comment on exported method Pulse.AddPulser should be of the form "AddPulser ..." (golint)
    • Line 191: warning: comment on exported method Pulse.RemovePulser should be of the form "RemovePulser ..." (golint)
    • Line 197: warning: exported method Pulse.StopAllPulser should have comment or be unexported (golint)
    • Line 201: warning: comment on exported method Pulse.StartAllPulser should be of the form "StartAllPulser ..." (golint)
    • Line 207: warning: comment on exported method Pulse.Status should be of the form "Status ..." (golint)
    • Line 214: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 225: warning: comment on exported method Pulse.StatusAll should be of the form "StatusAll ..." (golint)
    • Line 246: warning: exported method Pulse.Gossip should have comment or be unexported (golint)
    • pulse/pkg/pulse/udp.go
    • Line 16: warning: exported var MAGIC_BYTES should have comment or be unexported (golint)
    • Line 20: warning: comment on exported type PulseResponse should be of the form "PulseResponse ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported type FailureMessage should be of the form "FailureMessage ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported function PulseServer should be of the form "PulseServer ..." (golint)
    • Line 90: warning: comment on exported function SendPulse should be of the form "SendPulse ..." (golint)
    • Line 178: warning: exported function RequestPulse should have comment or be unexported (golint)
    • Line 182: warning: exported function PickThree 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!


misspell83%

Misspell Finds commonly misspelled English words