Preparing report...

Report for github.com/googlemaps/google-maps-services-go

(v1.3.2)

An error occurred while generating the report.    Found 11 issues across 53 files

Tweet

gofmt94%

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!


gocyclo92%

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.

    • types.go
    • Line 284: warning: cyclomatic complexity 91 of function ParsePlaceType() is high (> 15) (gocyclo)
    • Line 547: warning: cyclomatic complexity 34 of function ParsePlaceDetailsFieldMask() is high (> 15) (gocyclo)
    • Line 667: warning: cyclomatic complexity 27 of function ParsePlaceSearchFieldMask() is high (> 15) (gocyclo)
    • places_test.go
    • Line 651: warning: cyclomatic complexity 22 of function TestPlaceDetails() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 16 of function TestTextSearchPizzaInNewYork() is high (> 15) (gocyclo)
    • directions.go
    • Line 35: warning: cyclomatic complexity 16 of function (*Client).Directions() is high (> 15) (gocyclo)

golint94%

Golint is a linter for Go source code.

    • metrics/metric.go
    • Line 8: warning: exported type Reporter should have comment or be unexported (golint)
    • Line 12: warning: exported type Request should have comment or be unexported (golint)
    • Line 16: warning: exported type NoOpReporter should have comment or be unexported (golint)
    • Line 19: warning: exported method NoOpReporter.NewRequest should have comment or be unexported (golint)
    • metrics/opencensus.go
    • Line 14: warning: don't use underscores in Go names; var latency_measure should be latencyMeasure (golint)
    • Line 21: warning: exported var Count should have comment or be unexported (golint)
    • Line 38: warning: exported function RegisterViews should have comment or be unexported (golint)
    • Line 42: warning: exported type OpenCensusReporter should have comment or be unexported (golint)
    • Line 45: warning: exported method OpenCensusReporter.NewRequest should have comment or be unexported (golint)
    • client.go
    • Line 59: warning: exported const ExperienceIdHeaderName should have comment (or a comment on this block) or be unexported (golint)
    • Line 192: warning: exported function WithMetricReporter should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)