Preparing report...

Report for github.com/akhenakh/regionagogo

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


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.


golint61%

Golint is a linter for Go source code.

    • regionagogo/mobile/mobile.go
    • Line 10: warning: exported type GeoDB should have comment or be unexported (golint)
    • Line 14: warning: exported type Fence should have comment or be unexported (golint)
    • Line 20: warning: exported function NewGeoDB should have comment or be unexported (golint)
    • Line 25: warning: exported function NewFence should have comment or be unexported (golint)
    • Line 30: warning: exported method GeoDB.OpenDB should have comment or be unexported (golint)
    • Line 44: warning: exported method GeoDB.Close should have comment or be unexported (golint)
    • Line 48: warning: exported method GeoDB.FenceByID should have comment or be unexported (golint)
    • Line 64: warning: exported method GeoDB.QueryHandler should have comment or be unexported (golint)
    • regionagogo/geofence.go
    • Line 33: warning: exported type QueryOptionsFunc should have comment or be unexported (golint)
    • Line 35: warning: comment on exported type QueryOptions should be of the form "QueryOptions ..." (with optional leading article) (golint)
    • regionagogo/importer.go
    • Line 14: warning: exported type Import should have comment or be unexported (golint)
    • Line 29: warning: exported function NewGeoJSONImport should have comment or be unexported (golint)
    • Line 41: warning: exported method Import.Start should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!