Preparing report...

Report for github.com/enesusta/tzone

B    Not bad!    Found 8 issues across 10 files

Tweet

gofmt70%

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!


gocyclo100%

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.

No problems detected. Good job!


golint50%

Golint is a linter for Go source code.

    • tzone/town/town.go
    • Line 13: warning: exported type Province should have comment or be unexported (golint)
    • Line 18: warning: exported type County should have comment or be unexported (golint)
    • Line 23: warning: exported type Town should have comment or be unexported (golint)
    • Line 27: warning: exported type TownEntity should have comment or be unexported (golint)
    • Line 68: warning: exported function GetTowns should have comment or be unexported (golint)
    • Line 73: warning: exported function GetTown should have comment or be unexported (golint)
    • Line 82: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: exported function GetSpecificTown should have comment or be unexported (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tzone/village/village.go
    • Line 13: warning: exported type Province should have comment or be unexported (golint)
    • Line 18: warning: exported type County should have comment or be unexported (golint)
    • Line 23: warning: exported type Town should have comment or be unexported (golint)
    • Line 28: warning: exported type Village should have comment or be unexported (golint)
    • Line 33: warning: exported type TownEntity should have comment or be unexported (golint)
    • Line 38: warning: exported type VillageEntity should have comment or be unexported (golint)
    • Line 88: warning: exported function GetAllVillages should have comment or be unexported (golint)
    • Line 93: warning: exported function GetVillagesOfProvince should have comment or be unexported (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 108: warning: exported function GetVillagesOfCounty should have comment or be unexported (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 125: warning: exported function GetVillagesOfTown should have comment or be unexported (golint)
    • Line 137: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tzone/county/county.go
    • Line 13: warning: exported type Province should have comment or be unexported (golint)
    • Line 18: warning: exported type County should have comment or be unexported (golint)
    • Line 50: warning: exported function GetCounties should have comment or be unexported (golint)
    • Line 61: warning: exported function GetCounty should have comment or be unexported (golint)
    • Line 70: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tzone/province/province.go
    • Line 14: warning: exported type Province should have comment or be unexported (golint)
    • Line 39: warning: exported function GetProvinces should have comment or be unexported (golint)
    • Line 44: warning: exported function GetProvince should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign40%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!