Preparing report...

Report for github.com/vdobler/ht

A+    Excellent!    Found 32 issues across 128 files

Tweet

gofmt98%

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!


golint94%

Golint is a linter for Go source code.

    • ht/internal/bender/bender.go
    • Line 27: warning: exported type IntervalGenerator should have comment or be unexported (golint)
    • Line 29: warning: exported type EventType should have comment or be unexported (golint)
    • Line 32: warning: exported const StartEvent should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type Event should have comment or be unexported (golint)
    • Line 47: warning: exported type Test should have comment or be unexported (golint)
    • ht/internal/bender/recorders.go
    • Line 22: warning: exported type Recorder should have comment or be unexported (golint)
    • Line 24: warning: exported function Record should have comment or be unexported (golint)
    • Line 48: warning: exported function NewLoggingRecorder should have comment or be unexported (golint)
    • ht/recorder/recorder.go
    • Line 138: warning: comment on exported const RewriteNothing should be of the form "RewriteNothing ..." (golint)
    • Line 140: warning: exported const RewriteResponseHeader should have comment (or a comment on this block) or be unexported (golint)
    • ht/cmd/ht/example.go
    • Line 38: warning: comment on exported type Example should be of the form "Example ..." (with optional leading article) (golint)

gocyclo81%

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.

    • ht/ht/ht_test.go
    • Line 126: warning: cyclomatic complexity 30 of function TestMultipartParameterHandling() is high (> 15) (gocyclo)
    • Line 423: warning: cyclomatic complexity 26 of function TestMerge() is high (> 15) (gocyclo)
    • ht/ht/cache.go
    • Line 134: warning: cyclomatic complexity 27 of function (Cache).Execute() is high (> 15) (gocyclo)
    • ht/ht/latency.go
    • Line 79: warning: cyclomatic complexity 25 of function (*Latency).Execute() is high (> 15) (gocyclo)
    • ht/gui/render.go
    • Line 47: warning: cyclomatic complexity 16 of function (*Value).render() is high (> 15) (gocyclo)
    • ht/ht/ht.go
    • Line 1217: warning: cyclomatic complexity 30 of function (*Test).CurlCall() is high (> 15) (gocyclo)
    • Line 750: warning: cyclomatic complexity 24 of function (*Test).newRequest() is high (> 15) (gocyclo)
    • Line 308: warning: cyclomatic complexity 17 of function mergeRequest() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 16 of function (*Test).prepareRequest() is high (> 15) (gocyclo)
    • ht/suite/raw.go
    • Line 487: warning: cyclomatic complexity 16 of function (*RawSuite).Execute() is high (> 15) (gocyclo)
    • ht/ht/resilience.go
    • Line 335: warning: cyclomatic complexity 37 of function (Resilience).modify() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 18 of function (Resilience).Execute() is high (> 15) (gocyclo)
    • ht/ht/html.go
    • Line 478: warning: cyclomatic complexity 23 of function (*Links).Execute() is high (> 15) (gocyclo)
    • ht/internal/hjson/decode.go
    • Line 256: warning: cyclomatic complexity 28 of function (*hjsonParser).readTfnns() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 20 of function (*hjsonParser).readMLString() is high (> 15) (gocyclo)
    • ht/cookiejar/jar.go
    • Line 611: warning: cyclomatic complexity 21 of function isValidJarEntry() is high (> 15) (gocyclo)
    • Line 174: warning: cyclomatic complexity 18 of function (*Jar).cookies() is high (> 15) (gocyclo)
    • Line 253: warning: cyclomatic complexity 18 of function (*Jar).setCookies() is high (> 15) (gocyclo)

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!