The ".audit" file.

CodePro AnalytiX (Audit & Test), includes over 1000 audit rules and metrics, JUnit test generation & editing, code coverage, and duplicate code analysis

Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, dcarew

The ".audit" file.

Postby sethhickel » Mon Jul 31, 2006 7:48 am

I publish a ".audit" file to my corporate users that contains the line "<audit name="Java Files" auditRuleSet="/SSDI Jan 05 Rule Set">"

Is this line required and if so, will this .audit file only function when an audit is done with that particular rule set? Will this line force the audit to be done using the referenced rule set?

Posts: 3
Joined: Mon Jun 26, 2006 5:44 am

Postby Brian Wilkerson » Tue Aug 01, 2006 6:51 am


Yes, the "audit" tag is required. It specifies one of the ways you want files in the project containing the ".audit" file to be audited (you can specify multiple "audit" tags if different portions of the project should be audited differently). But, no, the ".audit" file is always taken into account when an audit is run.

Assuming that the referenced audit rule set is loaded in the user's workspace, it will always be used to audit any file in the project that passes the inclusion and exclusion patterns you have specified (if any). If the audit rule set is not loaded in the user's workspace, the default audit rule set will be used instead.

Note that you can specify an audit rule set that is checked in as part of the project and CodePro will automatically load that audit rule set in order to use it. This avoids the question of whether or not users have loaded the audit rule set into their workspace. Details on how to specify different locations for the audit rule set can be found here:
Brian Wilkerson
Google, Inc.
Brian Wilkerson
Posts: 32
Joined: Fri Apr 28, 2006 9:37 am

Return to CodePro AnalytiX & PlusPak. EclipsePro Audit & Test

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest