Preparing report...

Report for github.com/ooni/probe-engine

A+    Excellent!    Found 36 issues across 434 files

Tweet

gofmt99%

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!


gocyclo95%

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.

    • probe-engine/experiment/urlgetter/configurer_test.go
    • Line 151: warning: cyclomatic complexity 21 of function TestConfigurerNewConfigurationResolverDNSOverHTTPSGoogle() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 21 of function TestConfigurerNewConfigurationResolverDNSOverHTTPSPowerdns() is high (> 15) (gocyclo)
    • Line 303: warning: cyclomatic complexity 21 of function TestConfigurerNewConfigurationResolverUDP() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 21 of function TestConfigurerNewConfigurationResolverDNSOverHTTPSCloudflare() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 17 of function TestConfigurerNewConfigurationVanilla() is high (> 15) (gocyclo)
    • probe-engine/experiment/urlgetter/getter_test.go
    • Line 653: warning: cyclomatic complexity 45 of function TestGetterIntegrationHTTPSWithTunnel() is high (> 15) (gocyclo)
    • Line 399: warning: cyclomatic complexity 44 of function TestGetterIntegrationHTTPS() is high (> 15) (gocyclo)
    • Line 540: warning: cyclomatic complexity 42 of function TestGetterIntegrationTLSHandshake() is high (> 15) (gocyclo)
    • Line 219: warning: cyclomatic complexity 22 of function TestGetterWithCancelledContextNoFollowRedirects() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 22 of function TestGetterWithCancelledContextAndMethod() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 22 of function TestGetterWithVeryShortTimeout() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 22 of function TestGetterWithCancelledContextVanilla() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 18 of function TestGetterWithCancelledContextUnknownResolverURL() is high (> 15) (gocyclo)
    • Line 289: warning: cyclomatic complexity 17 of function TestGetterWithCancelledContextCannotStartTunnel() is high (> 15) (gocyclo)
    • probe-engine/experiment/sniblocking/sniblocking_test.go
    • Line 175: warning: cyclomatic complexity 17 of function TestMeasureoneCancelledContext() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 17 of function TestMeasureoneWithPreMeasurementFailure() is high (> 15) (gocyclo)
    • Line 281: warning: cyclomatic complexity 17 of function TestMeasureoneSuccess() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words