Skip to content

Commit

Permalink
[JENKINS-22965] Cppcheck plugin shall display the inconclusive messages
Browse files Browse the repository at this point in the history
- Inconclusive messages are displayed with gray text color.
  • Loading branch information
mixalturek committed May 18, 2014
1 parent f1cf428 commit 0814460
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Expand Up @@ -11,6 +11,7 @@
#cppcheckDetails .new { background-color: #FFC8C8; }
#cppcheckDetails .solved { background-color: #C8FFC8; }
#cppcheckDetails .unchanged { }
#cppcheckDetails .inconclusive { color: #555555; }
</style>

<p><a href="source.all?before=5&amp;after=5">
Expand All @@ -32,8 +33,13 @@
<tbody>
<j:forEach var="elt" items="${cachedContainer}">
<j:set var="cppcheckFile" value="${elt.cppcheckFile}"/>

<j:set var="inconclusiveCss" value=""/>
<j:if test="${cppcheckFile.inconclusive}">
<j:set var="inconclusiveCss" value="inconclusive"/>
</j:if>

<tr class="${elt.diffState.css}">
<tr class="${elt.diffState.css} ${inconclusiveCss}">
<td class="pane">${elt.diffState.text}</td>
<td class="pane">
<j:if test="${elt.isSourceIgnored()}">
Expand Down
Expand Up @@ -10,6 +10,7 @@
.newCppcheck { background-color: #FFC8C8; }
.solvedCppcheck { background-color: #C8FFC8; }
.unchangedCppcheck { }
.inconclusiveCppcheck { color: #555555; }

.cppcheck h2 { margin-top: 0; }
.cppcheck code { display: block; margin: 1em 0em 1em 0em; }
Expand All @@ -22,7 +23,12 @@
<h1>${%Cppcheck Results}</h1>

<j:forEach var="file" items="${it.files}">
<div class="cppcheck ${file.diffState.css}Cppcheck">
<j:set var="inconclusiveCss" value=""/>
<j:if test="${file.cppcheckFile.inconclusive}">
<j:set var="inconclusiveCss" value="inconclusiveCppcheck"/>
</j:if>

<div class="cppcheck ${file.diffState.css}Cppcheck ${inconclusiveCss}">
<h2>${file.cppcheckFile.messageHtml}</h2>

<j:if test="${file.cppcheckFile.fileName != null}">
Expand Down

0 comments on commit 0814460

Please sign in to comment.