How do you exclude specific rules from a rules file when using the
<fxcop> task? For instance, I might want to exclude the rule
ImplementStandardExceptionConstructors found within DesignRules. My
config, using NAntContrib 0.85, looks like this:

<fxcop analysisReportFilename="${output.dir}\fxcop.xml">
        <targets>
                <include
name="${source.dir}\bin\${configuration}\MyAssembly.dll" />
        </targets>
        <rules>
                <include name="${FxCop.dir}\Rules\DesignRules.dll" />
                <include name="${FxCop.dir}\Rules\NamingRules.dll" />
                <include name="${FxCop.dir}\Rules\PerformanceRules.dll"
/>
                <include name="${FxCop.dir}\Rules\SecurityRules.dll" />
                <include name="${FxCop.dir}\Rules\UsageRules.dll" />
        </rules>
</fxcop>

Looking at the help files, there seems to be the possibility that
<imports /> could be set, but there are no examples given.

Thanks in advance,
David Keaveny

The information contained in this e-mail message and any accompanying files is 
or may be confidential. If you are not the intended recipient, any use, 
dissemination, reliance, forwarding, printing or copying of this e-mail or any 
attached files is unauthorised. This e-mail is subject to copyright. No part of 
it should be reproduced, adapted or communicated without the written consent of 
the copyright owner. If you have received this e-mail in error please advise 
the sender immediately by return e-mail or telephone and delete all copies. 
Fairfax does not guarantee the accuracy or completeness of any information 
contained in this e-mail or attached files. Internet communications are not 
secure, therefore Fairfax does not accept legal responsibility for the contents 
of this message or attached files.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to