See Jenkins Violations Plugin for details on how to configure and use this plugin.
Filename patterns are optional. The syntax is Apache DirectoryScanner, for example **/*.xml matches xml-files anywhere in workspace.