You know the find all references feature of eclipse (Search > References > Workspace or Ctrl-Shift-G)? How can I run that programmatically?
I have a large codebase that I need to audit for security violations and need to chain about a dozen conditions.
Are there libraries out there that can analyze large projects (I have 1GB of source files) in Java? Here's the questions I need to answer:
- Pass in a list of Interfaces, find all implementations of those interfaces
- Search that list for invocations of our security library
- Search every method referenced in the list above to confirm that the proper authorization library call was made.
I can do this manually in a day, but would rather spend 2 writing a nice script to do the work for me.
Any leads on libraries I can use to script these common tasks that Eclipse does so nicely? Ideally, I would like to perform them command-line, so they can be repeatable and scripted, but obviously will take what I can get.