checkstyle/checkstyle — pull request #256 by tsjensen (2014-08-18 19:36:50+00:00)
Title: New check RegexpOnFilename

Here is a new check called 'RegexpOnFilename', which applies a given regular expression to the names of files (path and file name, not the file contents). Depending on the configuration, a warning is logged if a required match is not found, or if an illegal match is found.

This is useful for situations such as:

* Checking that resources in certain directories follow a naming convention
* Resource file names contain only legal characters
* Files of certain types are created in the right places, e.g. Java files under src/*/java
* Prevent certain files or types of files altogether, by "banning" their names