InspectCodeAliases.

InspectCode(ICakeContext, FilePath, InspectCodeSettings) Method

Summary

Analyses the specified solution with ReSharper's InspectCode, using the specified settings.

Syntax

[CakeMethodAlias]
[CakeAliasCategory("InspectCode")]
public static void InspectCode(this ICakeContext context, FilePath solution, InspectCodeSettings settings)

Examples

 var buildOutputDirectory = Directory("./.build");
 var resharperReportsDirectory = buildOutputDirectory + Directory("_ReSharperReports");

 var msBuildProperties = new Dictionary<string, string>();
 msBuildProperties.Add("configuration", configuration);
 msBuildProperties.Add("platform", "AnyCPU");

 InspectCode("./MySolution.sln", new InspectCodeSettings {
     SolutionWideAnalysis = true,
     Profile = "./MySolution.sln.DotSettings",
     MsBuildProperties = msBuildProperties,
     OutputFile = resharperReportsDirectory + File("inspectcode-output.xml"),
     ThrowExceptionOnFindingViolations = true
 });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
solution FilePath The solution.
settings InspectCodeSettings The settings.

Return Value

Type Description
void