Skip to content

Commit fe7896a

Browse files
committed
html-writer: use the term "finding"
... instead of "defect" in the reports. Resolves: csutils#193 Signed-off-by: Siteshwar Vashisht <[email protected]>
1 parent e21d8ce commit fe7896a

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

src/lib/writer-html.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ std::string digTitle(const TScanProps &props) {
128128

129129
it = props.find("diffbase-project-name");
130130
if (NA != it) {
131-
title += " - defects not occurring in ";
131+
title += " - findings not occurring in ";
132132
title += it->second;
133133
}
134134

@@ -296,7 +296,7 @@ void HtmlWriterCore::writeHeaderOnce(
296296
writeScanProps(str_, props);
297297

298298
// initialize the section for defects
299-
HtmlLib::initSection(str_, "List of Defects");
299+
HtmlLib::initSection(str_, "List of Findings");
300300
HtmlLib::initPre(str_);
301301

302302
headerWritten_ = true;
@@ -399,11 +399,11 @@ void HtmlWriter::setDiffBase(
399399
: it->second;
400400

401401
if (projName.empty()) {
402-
d->newDefMsg = "newly introduced defect";
402+
d->newDefMsg = "newly introduced finding";
403403
return;
404404
}
405405

406-
d->newDefMsg += "defect not occurring in <b>";
406+
d->newDefMsg += "finding not occurring in <b>";
407407
d->newDefMsg += projName;
408408
d->newDefMsg += "</b>";
409409
}

0 commit comments

Comments
 (0)