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 buil-in profile is used.
/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"
CodeItRight.Cmd Error Codes
| 0x0 | No errors |
| 0x1 | Command Line Switch Error |
| 0x2 | Command Line Argument Error |
| 0x4 | Initialization Error |
| 0x8 | Analysis Error |
| 0x10 | Output Error |
| 0x20 | Unknown Error |