Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-22965] Cppcheck plugin shall display the inconclusive messages
- Item "inconclusive" added to XSD schema, this should solve a broken build (generated file was updated).
  • Loading branch information
mixalturek committed May 18, 2014
1 parent 0814460 commit 689323a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -143,7 +143,8 @@ private CppcheckReport getReportVersion2(Results results) {
cppcheckFile.setCppCheckId(error.getId());
cppcheckFile.setSeverity(error.getSeverity());
cppcheckFile.setMessage(error.getMsg());
cppcheckFile.setInconclusive(Boolean.parseBoolean(error.getInconclusive()));
cppcheckFile.setInconclusive((error.getInconclusive() != null)
? error.getInconclusive() : false);

if ("warning".equals(cppcheckFile.getSeverity())) {
warningSeverityList.add(cppcheckFile);
Expand Down
Expand Up @@ -19,6 +19,7 @@
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="severity" type="xs:string" use="required"/>
<xs:attribute name="msg" type="xs:string" use="required"/>
<xs:attribute name="inconclusive" type="xs:boolean" use="optional"/>
</xs:complexType>
</xs:element>

Expand Down

0 comments on commit 689323a

Please sign in to comment.