Preparing report...

Report for github.com/flier/gohs

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


gocyclo96%

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.


golint88%

Golint is a linter for Go source code.

    • gohs/examples/pcapscan/main.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 53: warning: exported type FiveTuple should have comment or be unexported (golint)
    • Line 60: warning: exported method FiveTuple.Hash should have comment or be unexported (golint)
    • Line 76: warning: comment on exported type Benchmark should be of the form "Benchmark ..." (with optional leading article) (golint)
    • Line 88: warning: exported function NewBenchmark should have comment or be unexported (golint)
    • Line 138: warning: comment on exported method Benchmark.ReadStreams should be of the form "ReadStreams ..." (golint)
    • Line 178: warning: exported method Benchmark.Close should have comment or be unexported (golint)
    • Line 186: warning: comment on exported method Benchmark.Bytes should be of the form "Bytes ..." (golint)
    • Line 195: warning: comment on exported method Benchmark.Matches should be of the form "Matches ..." (golint)
    • Line 198: warning: comment on exported method Benchmark.ClearMatches should be of the form "ClearMatches ..." (golint)
    • Line 201: warning: comment on exported method Benchmark.DisplayStats should be of the form "DisplayStats ..." (golint)
    • Line 237: warning: comment on exported method Benchmark.OpenStreams should be of the form "OpenStreams ..." (golint)
    • Line 255: warning: comment on exported method Benchmark.CloseStreams should be of the form "CloseStreams ..." (golint)
    • Line 266: warning: comment on exported method Benchmark.ResetStreams should be of the form "ResetStreams ..." (golint)
    • Line 277: warning: comment on exported method Benchmark.ScanStreams should be of the form "ScanStreams ..." (golint)
    • Line 288: warning: comment on exported method Benchmark.ScanBlock should be of the form "ScanBlock ..." (golint)
    • Line 302: warning: comment on exported type Clock should be of the form "Clock ..." (with optional leading article) (golint)
    • Line 307: warning: exported method Clock.Start should have comment or be unexported (golint)
    • Line 309: warning: exported method Clock.Stop should have comment or be unexported (golint)
    • Line 311: warning: exported method Clock.Time should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!