So last night i whipped up a little soft to help with just that.
Anyways here's how it works:
- enter a regexp that matches the files you want to match
- choose if you want to match if they are used or not used
- choose what filetypes you want to search inside, to see if they are referenced in there
- select your starting directory
- load all file names from base directory & all sub-directories
- extract file names that match what we are testing for
- extract file names that match which files we will be searching in
- iterate over each of the files we are searching in
- open each file and check if the content contains a match
- if so add to a match list
- do a diff between match list & all list
And since it uses standard regexp as input, you can match pretty much anything in any type of file.
* Can be launched via the command line by passing it a directory or file path (be sure to add " around your path if it contains spaces). Like this it's easy to integrate with Visual Studio, Eclipse, Zend Studio, NetBeans, etc.
* Double clicking a path in the visible list will open the directory the file is contained in
* Once file processing is done you can toggle the visible list between used/unused files
* Click export to export the visible list to a text file for later investigation
* Regexp criteria and target directory path is saved after successful search and restored on application launch
* Selecting one or more paths in the visible list and clicking delete, will prompt you if you really want to delete the file(s)
* Allow passing regexps via command line
* Allow report generation via command line
* Create version integrated with VS context menu
Needs .NET 4 installed to function