Example #1
0
 /// <summary>
 /// Allows multiple results files to be aggregated into a single report output.
 /// </summary>
 /// <param name="settings">The settings object.</param>
 /// <param name="resultFiles">The report files to aggregate.</param>
 /// <returns>Settings object.</returns>
 public static StyleCopReportSettings AddResultFiles(this StyleCopReportSettings settings, FilePathCollection resultFiles)
 {
     settings.ResultFiles = resultFiles;
     return(settings);
 }
Example #2
0
 /// <summary>
 /// Indicates the results should be outputted as an HTML report.
 /// </summary>
 /// <param name="settings">The settings object.</param>
 /// <param name="htmlFile">The filepath for the html report.</param>
 /// <param name="xsltStylesheet">(Optional) The filepath for the xslt stylesheet. If omitted the default supplied with Cake.Stylecop is used.</param>
 /// <returns>Settings object.</returns>
 public static StyleCopReportSettings ToHtmlReport(this StyleCopReportSettings settings, FilePath htmlFile, FilePath xsltStylesheet = null)
 {
     settings.HtmlReportFile = htmlFile;
     settings.StyleSheet     = xsltStylesheet;
     return(settings);
 }