Preparing report...

Report for github.com/oldfritter/validator

A    Great!    Found 29 issues across 48 files

Tweet

gofmt79%

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!


golint85%

Golint is a linter for Go source code.

    • validator/country_codes.go
    • Line 3: warning: don't use underscores in Go names; var iso3166_1_alpha2 should be iso3166_1Alpha2 (golint)
    • Line 57: warning: don't use underscores in Go names; var iso3166_1_alpha3 should be iso3166_1Alpha3 (golint)
    • Line 110: warning: don't use underscores in Go names; var iso3166_1_alpha_numeric should be iso3166_1AlphaNumeric (golint)

gocyclo66%

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.

    • validator/cache.go
    • Line 169: warning: cyclomatic complexity 26 of function (*Validate).parseFieldTagsRecursive() is high (> 15) (gocyclo)
    • validator/util.go
    • Line 61: warning: cyclomatic complexity 29 of function (*validate).getStructFieldOKInternal() is high (> 15) (gocyclo)

ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words

    • validator/translations/nl/nl.go
    • Line 1048: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1223: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1228: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1233: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1243: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1248: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1253: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1258: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1263: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1268: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1273: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1278: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1283: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1288: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1293: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1298: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1303: warning: "adres" is a misspelling of "address" (misspell)
    • validator/translations/nl/nl_test.go
    • Line 203: warning: "adres" is a misspelling of "address" (misspell)
    • Line 207: warning: "adres" is a misspelling of "address" (misspell)
    • Line 211: warning: "adres" is a misspelling of "address" (misspell)
    • Line 215: warning: "adres" is a misspelling of "address" (misspell)
    • Line 219: warning: "adres" is a misspelling of "address" (misspell)
    • Line 223: warning: "adres" is a misspelling of "address" (misspell)
    • Line 227: warning: "adres" is a misspelling of "address" (misspell)
    • Line 231: warning: "adres" is a misspelling of "address" (misspell)
    • Line 235: warning: "adres" is a misspelling of "address" (misspell)
    • Line 239: warning: "adres" is a misspelling of "address" (misspell)
    • Line 247: warning: "adres" is a misspelling of "address" (misspell)
    • Line 251: warning: "adres" is a misspelling of "address" (misspell)
    • Line 259: warning: "adres" is a misspelling of "address" (misspell)
    • Line 263: warning: "adres" is a misspelling of "address" (misspell)
    • Line 267: warning: "adres" is a misspelling of "address" (misspell)
    • Line 347: warning: "adres" is a misspelling of "address" (misspell)