# general


06/10/2021, 4:12 PM
I've read over the documentation I could find on
./pants validate '**'
but I am not sure what it does. When I run it on my v2.2.3 repo I get a
KeyError: 'path_patterns'
error. I found it in
script. What is it supposed to validate?


06/10/2021, 4:34 PM
Yeah, the docs don't say much: If you guess well though and click the
entry in the subsystems table you get more hints: Probably best is to look at Pants dogfooding of this goal: + + And ... with that last yaml you can see we use it to validate copyright headers. So, in short, you have to configure the validate goal to use it and it looks like it fails in an ugly way if not configured first. Once configured it'll scan for files matching patterns and then, scan those files contents for patterns that eithe must exist in them or must not exist in them.
🚀 1