diff --git a/Jenkinsfile b/Jenkinsfile
index 7d38600aba21d746f2a63d6a32777666621f431f..70024250cb3a30ae6cd23125493fcd48aef9978e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -111,10 +111,12 @@ pipeline {
                 excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')],
                 tools: [gcc4(name: 'GCC', pattern: 'build/build.log')],
                 unstableTotalAll: 3
-              // TODO: .*DOT_GRAPH_MAX_NODES.
-              //       .*potential recursive class relation.*
-              recordIssues tools: [doxygen(pattern: 'build/DoxygenWarnings.log')],
-                unstableTotalAll: 25
+              recordIssues filters: [
+                  excludeFile('-'), excludeFile('.*Functional\\.h'),
+                  excludeFile('.*gmock-.*\\.h'), excludeFile('.*gtest-.*\\.h')
+                ],
+                tools: [doxygen(pattern: 'build/DoxygenWarnings.log')],
+                failedTotalAll: 1
             }
             success {
               publishHTML(target: [allowMissing: false, alwaysLinkToLastBuild: true,