in traceabilitytool/reportwriter.cs [85:114]
public static void WriteInvalidReqReport(string outputFolderPath)
{
int maxKeyWidth = ReportGenerator.invalidRequirements.maxKeyLength + 3;
int maxReasonWidth = ReportGenerator.invalidRequirements.maxReasonLength + 3;
StringBuilder sb = new StringBuilder();
foreach (string key in ReportGenerator.invalidRequirements.Keys)
{
sb.Append(key.PadRight(maxKeyWidth));
bool newLine = false;
foreach (InvalidReqDictEntry entry in ReportGenerator.invalidRequirements[key])
{
if (newLine)
{
sb.AppendLine("".PadRight(maxKeyWidth) + entry.reason.PadRight(maxReasonWidth) + entry.filePath + ", line " + entry.lineNum.ToString());
}
else
{
sb.AppendLine(entry.reason.PadRight(maxReasonWidth) + entry.filePath + ", line " + entry.lineNum.ToString());
newLine = true;
}
}
}
sb.AppendLine("".PadRight(35, '='));
sb.AppendLine("Total invalid requirements: " + ReportGenerator.invalidRequirements.Count.ToString());
// Output data to a CSV file.
writeStringToFile(sb.ToString(), outputFolderPath + @"\invalid_requirements.txt");
}