SubMain - CodeIt.Right The First Time!

/Community

A Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials Downloads
Welcome to SubMain Community Sign in | Join | Help

Tutorials

CodeItRight.Cmd.exe Command Line Options

CodeItRight.Cmd is the command-line companion to the CodeIt.Right application. Like CodeIt.Right, CodeItRight.Cmd analyzes source code and reports violations, such as possible design, performance, and security issues. CodeItRight.Cmd can be used as a stand-alone tool or added to automated build processes. 

The following are the command line parameters that are supported by SubMain.CodeItRight.Cmd.exe ; Parameter values are not case sensitive.

/Solution  - (Required*) - full file name of the solution to load (*.sln file) (*) This parameter is not required if /Project parameter specified.
 
/Project   - (Required*) - full file name of the project to load (*.csproj or *.vbproj file) (*) This parameter is not required if /Solution parameter specified.

/Out  - (Required) - full name of the xml report output file.

/OutXSL  - (Optional) - full name of the xsl file to override the default xsl.

/CRData  - (Optional) - full name of the CodeIt.Right .crdata file. When specified, CodeItRight.Cmd will use the exclusion list (violations, rules and files) saved using the Visual Studio version of CodeIt.Right.

/Profile  - (Optional) - name of the User Profile that defines active rule set for the analysis. When omitted, the built-in profile is used.

/severityThreshold  - (Optional) - Severity Threshold value to limit the output violation set. When omitted, the the lowest Severity is used - None. Accepted values (from Higher to Lower):

  • CriticalError
  • Error
  • CriticalWarning
  • Warning
  • Information
  • None

/Quiet - (Optional) - disables console output.
 
/Help  - display list of command line parameters.

Example:

SubMain.CodeItRight.Cmd.exe /Solution:"C:\MyProjects\MyProject\MyProject.sln"
/Out:"C:\MyProjects\MyProject\MyProject.CIR.Output.xml"
/CRData:"C:\MyProjects\MyProject\MyProject.crdata" /Profile:"My Profile" /severityThreshold:"Error"

CodeItRight.Cmd Error Codes

Returns

  • Positive code equal to the number of violations found
  • 0 - No violations and no errors found
  • Negative codes for internal errors:
-1 Command Line Switch Error
-2 Command Line Argument Error
-3 Initialization Error
-4 Analysis Error
-5 Output Error
-6 Unknown Error
Published Sunday, March 23, 2008 10:11 PM by Serge B.

Comments

 

SubMain News said:

by Serge Baranovsky Since the v1.0 release a number of improvements were requested for use CodeIt.Right

March 24, 2008 2:43 AM
 

SubMain News said:

by Serge Baranovsky v1.1 progress & Enterprise Edition The v1.1 release that includes .NET 3.5 syntax

May 2, 2008 6:01 PM
 

SubMain News said:

by Serge Baranovsky New version of CodeIt.Right is almost out. We have a beta build 1.1.08198 for you

July 22, 2008 4:23 PM
 

SubMain News said:

New version of CodeIt.Right is out! You can download build 1.1.08262 today. This is a major release even

September 19, 2008 5:49 PM
 

SubMain News said:

Just before the holiday we are releasing new version of CodeIt.Right - build 1.2.08357. Download version

December 22, 2008 11:46 AM
Anonymous comments are disabled
    
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |