Skip to content

Instantly share code, notes, and snippets.

@laurentkempe
Created March 24, 2016 06:42
Show Gist options
  • Save laurentkempe/b0cad5252d47331e6fc8 to your computer and use it in GitHub Desktop.
Save laurentkempe/b0cad5252d47331e6fc8 to your computer and use it in GitHub Desktop.
Cake ReSharper Code Inspection Task
Task("ReSharper-Code-Inspection")
.IsDependentOn("Run-Unit-Tests")
.Does(() =>
{
var result = new FilePath(buildArtifacts + "/_ReSharperReports/inspectcode-report.xml");
InspectCode("InspecCode.sln",
new InspectCodeSettings() {
SolutionWideAnalysis = true,
Profile = "InspectCode.DotSettings",
OutputFile = result,
}
);
if (TeamCity.IsRunningOnTeamCity) {
//HERE is the problem
TeamCity.ImportData("ReSharperInspectCode", result.FullPath);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment