I'd like to run a program that will inspect certain rules are being followed in code. For example, if the architecture is MVC, I want to make sure that there are no components from the View being used in the Controller. This rule is a matter of checking that "Using MyApp.View" isn't in any of the Controller assembly files and also there are no direct references to this namespace in inline code. How would I go about doing that type of inspection?
The program will run through Nant or post build in VS.NET.