summaryrefslogtreecommitdiff
path: root/2022-10-29-135625-8387-cppcheck@f7805eff727a_master
diff options
context:
space:
mode:
Diffstat (limited to '2022-10-29-135625-8387-cppcheck@f7805eff727a_master')
-rw-r--r--2022-10-29-135625-8387-cppcheck@f7805eff727a_master/index.html193
-rw-r--r--2022-10-29-135625-8387-cppcheck@f7805eff727a_master/stats.html164
-rw-r--r--2022-10-29-135625-8387-cppcheck@f7805eff727a_master/style.css177
3 files changed, 534 insertions, 0 deletions
diff --git a/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/index.html b/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/index.html
new file mode 100644
index 0000000..6cc4337
--- /dev/null
+++ b/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/index.html
@@ -0,0 +1,193 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - python-caja</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - python-caja</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="style"disabled/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>1</td><td>missingIncludeSystem</td></tr>
+ <tr><td></td><td>1</td><td>total</td></tr>
+ </table>
+ <p><a href="stats.html">Statistics</a></p>
+ </div>
+ <div id="content_index">
+
+ <table class="summaryTable">
+ <tr><th>Line</th><th>Id</th><th>CWE</th><th>Severity</th><th>Message</th></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html"></a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Cppcheck cannot find all the include files (use --check-config for details)</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/stats.html b/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/stats.html
new file mode 100644
index 0000000..a40bb06
--- /dev/null
+++ b/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/stats.html
@@ -0,0 +1,164 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - python-caja</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - python-caja: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/style.css b/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2022-10-29-135625-8387-cppcheck@f7805eff727a_master/style.css
@@ -0,0 +1,177 @@
+
+body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
+ font-size: 13px;
+ line-height: 1.5;
+ height: 100%;
+ margin: 0;
+}
+
+#wrapper {
+ position: fixed;
+ height: 100vh;
+ width: 100vw;
+ display: grid;
+ grid-template-rows: fit-content(8rem) auto fit-content(8rem);
+ grid-template-columns: fit-content(25%) 1fr;
+ grid-template-areas:
+ "header header"
+ "menu content"
+ "footer footer";
+}
+
+h1 {
+ margin: 0 0 8px -2px;
+ font-size: 175%;
+}
+
+.header {
+ padding: 0 0 5px 15px;
+ grid-area: header;
+ border-bottom: thin solid #aaa;
+}
+
+.footer {
+ grid-area: footer;
+ border-top: thin solid #aaa;
+ font-size: 85%;
+
+}
+
+.footer > p {
+ margin: 4px;
+}
+
+#menu,
+#menu_index {
+ grid-area: menu;
+ text-align: left;
+ overflow: auto;
+ padding: 0 23px 15px 15px;
+ border-right: thin solid #aaa;
+ min-width: 200px;
+}
+
+#menu > a {
+ display: block;
+ margin-left: 10px;
+ font-size: 12px;
+}
+
+#content,
+#content_index {
+ grid-area: content;
+ padding: 0px 5px 15px 15px;
+ overflow: auto;
+}
+
+label {
+ white-space: nowrap;
+}
+
+label.checkBtn.disabled {
+ color: #606060;
+ background: #e0e0e0;
+ font-style: italic;
+}
+
+label.checkBtn, input[type="text"] {
+ border: 1px solid grey;
+ border-radius: 4px;
+ box-shadow: 1px 1px inset;
+ padding: 1px 5px;
+}
+
+label.checkBtn {
+ white-space: nowrap;
+ background: #ccddff;
+}
+
+label.unchecked {
+ background: #eff8ff;
+ box-shadow: 1px 1px 1px;
+}
+
+label.checkBtn:hover, label.unchecked:hover{
+ box-shadow: 0 0 2px;
+}
+
+label.disabled:hover {
+ box-shadow: 1px 1px inset;
+}
+
+label.checkBtn > input {
+ display:none;
+}
+
+.summaryTable {
+ width: 100%;
+}
+
+table.summaryTable td { padding: 0 5px 0 5px; }
+
+.statHeader, .severityHeader {
+ font-weight: bold;
+}
+
+.warning {
+ background-color: #ffffa7;
+}
+
+.error {
+ background-color: #ffb7b7;
+}
+
+.error2 {
+ background-color: #faa;
+ display: inline-block;
+ margin-left: 4px;
+}
+
+.inconclusive {
+ background-color: #b6b6b4;
+}
+
+.inconclusive2 {
+ background-color: #b6b6b4;
+ display: inline-block;
+ margin-left: 4px;
+}
+
+.verbose {
+ display: inline-block;
+ vertical-align: top;
+ cursor: help;
+}
+
+.verbose .content {
+ display: none;
+ position: absolute;
+ padding: 10px;
+ margin: 4px;
+ max-width: 40%;
+ white-space: pre-wrap;
+ border: 1px solid #000;
+ background-color: #ffffcc;
+ cursor: auto;
+}
+
+.highlight .hll {
+ padding: 1px;
+}
+
+.highlighttable {
+ background-color: #fff;
+ position: relative;
+ margin: -10px;
+}
+
+.linenos {
+ border-right: thin solid #aaa;
+ color: #d3d3d3;
+ padding-right: 6px;
+}
+
+.id-filtered, .severity-filtered, .file-filtered, .tool-filtered, .text-filtered {
+ visibility: collapse;
+}