Repository Analysis

go-playground/validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

0.3 Likely human-written View on GitHub
0.3
Adjusted Score
0.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
19,984
Stars
Go
Language
77,556
Lines of Code
90
Files
17
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 2LOW 15

Pattern Findings

17 matches across 3 categories. Click a row to expand file-level details.

Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippet
LOWvalidator_instance.go201// eg. to use the names which have been specified for JSON representations of structs, rather than normal Go field names
LOWvalidator_instance.go381
LOWvalidator_instance.go581// Var validates a single variable using tag style validation.
LOWvalidator_instance.go601// var i int
LOWvalidator_instance.go641// allow it; however unforeseen validations will occur if trying to validate a
LOWvalidator_instance.go681 v.pool.Put(vd)
LOWvalidator_instance.go701
LOWstruct_level.go41 // It will dive into pointers, customTypes and return you the
LOWstruct_level.go61 // relativeNamespace and relativeActualNamespace get appended to the
LOWfield_level.go41 // NOTE: when not successful ok will be false, this can happen when a nested struct is nil and so the field
LOWerrors.go81 //
LOWerrors.go101 // NOTE: this field can be blank when validating a single primitive field
LOWerrors.go121 Field() string
LOWerrors.go201
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMvalidator_test.go906 // this isn't really a robust test, but is meant to illustrate the ANON CASE below
MEDIUMvalidator_test.go10514 // this isn't really a robust test, but is meant to illustrate the ANON CASE below
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOW_examples/http-transalations/main.go23// Step 1: go run _examples/http-transalations/main.go