Preparing report...

Report for github.com/go-playground/validator

(v9.31.0+incompatible)

A+    Excellent!    Found 19 issues across 42 files

Tweet

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!


gofmt88%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo69%

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.go
    • Line 96: warning: cyclomatic complexity 51 of function (*validate).traverseField() is high (> 15) (gocyclo)
    • baked_in.go
    • Line 562: warning: cyclomatic complexity 20 of function isBitcoinBech32Address() is high (> 15) (gocyclo)
    • util.go
    • Line 60: warning: cyclomatic complexity 28 of function (*validate).getStructFieldOKInternal() is high (> 15) (gocyclo)
    • cache.go
    • Line 169: warning: cyclomatic complexity 25 of function (*Validate).parseFieldTagsRecursive() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words

    • translations/nl/nl.go
    • Line 1048: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1213: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1218: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1223: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1233: warning: "adres" is a misspelling of "address" (misspell)
    • Line 1238: 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)
    • 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)