-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Cppcheck - HTML report - marco</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 - marco: Statistics</h1> | ||
|
||
</div> | ||
|
||
<div id="menu_index"> | ||
<p><a href="index.html">Back to summary</a> </p> | ||
|
||
</div> | ||
<div id="content_index"> | ||
<p><span class="statHeader">Top 10 files for error severity, total findings: 3</span><br> | ||
   1 <a href="26.html"> src/ui/theme.c</a><br> | ||
   1 <a href="31.html"> src/ui/menu.c</a><br> | ||
   1 <a href="14.html"> src/core/window.c</a><br> | ||
</p> | ||
<p><span class="statHeader">Top 10 files for warning severity, total findings: 3</span><br> | ||
   1 <a href="26.html"> src/ui/theme.c</a><br> | ||
   1 <a href="12.html"> src/core/testasyncgetprop.c</a><br> | ||
   1 <a href="0.html"> src/compositor/compositor-xrender.c</a><br> | ||
</p> | ||
<p><span class="statHeader">Top 10 files for portability severity, total findings: 27</span><br> | ||
   27 <a href="24.html"> src/ui/theme-parser.c</a><br> | ||
</p> | ||
<p><span class="statHeader">Top 10 files for style severity, total findings: 115</span><br> | ||
   14 <a href="6.html"> src/core/effects.c</a><br> | ||
   12 <a href="28.html"> src/ui/ui.c</a><br> | ||
   12 <a href="20.html"> src/ui/gradient.c</a><br> | ||
   11 <a href="4.html"> src/core/display.c</a><br> | ||
   9  <a href="23.html"> src/ui/tabpopup.c</a><br> | ||
   8  <a href="26.html"> src/ui/theme.c</a><br> | ||
   8  <a href="25.html"> src/ui/theme-viewer.c</a><br> | ||
   6  <a href="22.html"> src/ui/resizepopup.c</a><br> | ||
   5  <a href="10.html"> src/core/screen.c</a><br> | ||
   5  <a href="8.html"> src/core/keybindings.c</a><br> | ||
</p> | ||
<p><span class="statHeader">Top 10 files for information severity, total findings: 2</span><br> | ||
   1 <a href="9.html"> src/core/main.c</a><br> | ||
   1 <a href="4.html"> src/core/display.c</a><br> | ||
</p> | ||
|
||
</div> | ||
<div id="footer" class="footer"> | ||
<p> | ||
Created by Cppcheck 2.9 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) | ||
</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |