共用方式為


Specifying Warning Logs in OACR Commands

Many of the Microsoft Auto Code Review (OACR) Commands apply specifically to warning logs.

For the OACR commands that take warningLog as an argument, warningLog can be the current state of a project, or a saved warning log file. The warningLog argument can be specified in the following ways:

  • project:flavor [ /edit ] [ /cit ]
    Specifies a project and flavor that are defined in Oacr.ini. For example, you might specify WDKSamples.x86fre.

  • project [ flavor ] [ /edit ] [ /cit ]
    Specifies a project (and optionally, the flavor) that is defined in Oacr.ini.

  • all (or /all) [ /edit ] [ /cit ]
    Specifies all projects that are defined in Oacr.ini (default flavor).

  • last (or /last)
    Specifies the project for which the most recent oacr count, oacr list, oacr showstats, or oacr view command was run.

  • warningLogFile
    Specifies a warning log file that was created by using the export command.

If you use the /edit option, only warnings from checked-out files (that is, files that can be written to) are used.

You can use wildcards in project and flavor names. Use the asterisk (*) to replace one or many characters and the question mark (?) to replace a single character.

Not all commands support all and last. However, they are all supported unless otherwise noted.

Use the oacr showini /projects command to lists the projects that are defined in Oacr.ini.

If you use the /cit option, only warnings that break the check-in test are used.

For information about check-in tests, see the oacr checkintest command.

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011