/// <summary> /// Adds the file. /// </summary> /// <param name="file">The file.</param> /// <param name="data">The JSLint data.</param> public void AddFile(string file, IJSLintData data) { this.ProcessedFileCount += 1; if (!this.files.ContainsKey(file) && data.Errors.Count > 0) { this.ErrorFileCount += 1; this.ErrorCount += data.Errors.Count; var reportFile = new ReportFile() { ErrorCount = data.Errors.Count, ErrorReport = data.ErrorReport }; this.files.Add(file, reportFile); } }
/// <summary> /// Adds the file. /// </summary> /// <param name="file">The file.</param> /// <param name="data">The JSLint data.</param> public void AddFile(string file, IJSLintData data) { this.ProcessedFileCount += 1; if (!this.files.ContainsKey(file) && data.Warnings.Count > 0) { this.ErrorFileCount += 1; this.ErrorCount += data.Warnings.Count; var reportFile = new ReportFile() { ErrorCount = data.Warnings.Count, ErrorReport = data.Report }; this.files.Add(file, reportFile); } }