Create target custom scope to define files to be analyzed (feel free to check IDEA help for more information about that);
Define that custom scope (possibly with custom inspection profile) to use at 'Code Analyze Setup' dialog that appears after invoking 'Main Menu -> Analyze -> Inspect Code' action:
Hi Tony,
You can do the following: