Свойство | Тип | Описание | |
---|---|---|---|
AddDirectory | void | ||
AddFile | void | ||
AddProjectFile | void | ||
AddSolutionFile | void | ||
GetViolationsFile | string | ||
ReportBuilder | System | ||
ReportBuilder | System | ||
Transform | void | ||
ViolationEncountered | void |
Метод | Описание | |
---|---|---|
Create ( string outputXmlFile ) : void |
Creates a StyleCop report.
|
|
WithAddInDirectories ( IList |
Includes the following directories in the StyleCop processor's search path for add-ins.
|
|
WithDirectories ( IList |
Adds directories to check.
|
|
WithFiles ( IList |
Adds files to check.
|
|
WithIgnorePatterns ( IList |
Adds a list of patterns to ignore when checking files.
|
|
WithOutputEventHandler ( EventHandler |
Adds an event handler for when output is generated by the StyleCop processor.
|
|
WithProcessorSymbols ( IList |
Adds a list of processor symbols to use when performing the check.
|
|
WithProjectFiles ( IList |
Adds Visual Studio Project files to check. Visual Studio 2008 is supported.
|
|
WithRecursion ( ) : |
Specifies to recurse directories.
|
|
WithRecursion ( bool withRecursion ) : |
Specifies to recurse directories.
|
|
WithSolutionsFiles ( IList |
Adds Visual Studio Solution files to check. Visual Studio 2008 is supported.
|
|
WithStyleCopSettingsFile ( string styleCopSettingsFile ) : |
Adds a StyleCop settings file to use when performing the check.
|
|
WithTransformFile ( string transformFile ) : |
Adds an XSL transform file to use to create an HTML report from the results of the check.
|
Метод | Описание | |
---|---|---|
AddDirectory ( string path ) : void |
Add the directory's source files to the list of files that StyleCop checks.
|
|
AddFile ( string filePath, StyleCopReport solutionsRow, StyleCopReport projectsRow ) : void |
Add the given file to the list of files to be checked by StyleCop.
|
|
AddProjectFile ( string projectFilePath, StyleCopReport solutionsRow ) : void |
Adds a Visual Studio CSharp project file and adds its source files to the list of files to be checked by StyleCop.
|
|
AddSolutionFile ( string solutionFilePath ) : void |
Adds a Visual Studio solution file and add its CSharp projects to the list of projects to be checked by StyleCop.
|
|
GetViolationsFile ( string outputXmlFile ) : string |
Gets the path of the violations file to use.
|
|
ReportBuilder ( ) : System |
Prevents a default instance of the ReportBuilder class from being created.
|
|
ReportBuilder ( StyleCopReport report ) : System |
Initializes a new instance of the ReportBuilder class.
|
|
Transform ( string outputXmlFile ) : void |
Transforms the outputted report using an XSL transform file.
|
|
ViolationEncountered ( object sender, Microsoft.StyleCop.ViolationEventArgs e ) : void |
Callback method for when a violation is encountered.
|
public Create ( string outputXmlFile ) : void | ||
outputXmlFile | string | /// The fully-qualified path to write the output of the report to. /// |
Результат | void |
public WithAddInDirectories ( IList |
||
addinDirectories | IList |
The directories to include. |
Результат |
public WithDirectories ( IList |
||
directories | IList |
/// A list of fully-qualifieid paths to directories. /// |
Результат |
public WithFiles ( IList |
||
files | IList |
/// A list of fully-qualified paths to files. /// |
Результат |
public WithIgnorePatterns ( IList |
||
ignorePatterns | IList |
/// A list of regular expression patterns to ignore when checking /// files. /// |
Результат |
public WithOutputEventHandler ( EventHandler |
||
outputEventHandler | EventHandler |
/// The event handler to add. /// |
Результат |
public WithProcessorSymbols ( IList |
||
processorSymbols | IList |
/// A list of processor symboles to use when performing the check. /// |
Результат |
public WithProjectFiles ( IList |
||
projectFiles | IList |
/// A list of fully-qualified paths to Visual Studio project files. /// |
Результат |
public WithRecursion ( bool withRecursion ) : |
||
withRecursion | bool | /// True to recurse; otherwise false. /// |
Результат |
public WithSolutionsFiles ( IList |
||
solutionsFiles | IList |
/// A list of fully-qualified paths to Visual Studio solutions files. /// |
Результат |
public WithStyleCopSettingsFile ( string styleCopSettingsFile ) : |
||
styleCopSettingsFile | string | /// A fully-qualified path to a StyleCop settings file to use. /// |
Результат |
public WithTransformFile ( string transformFile ) : |
||
transformFile | string | /// An XSL transform file to use to create an HTML report from the /// results of the check. /// |
Результат |