diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-03 16:18:44 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-03 16:19:46 +0800 |
commit | ab20202ce2ce7c89c28b3a9e6cb51724af089fa2 (patch) | |
tree | 111fea6f7286ebcb48d6e3516302d62cce988cbe /src | |
parent | 74bf4c4064c844e4ef8de40ccf073a6acd46d79c (diff) |
feat: comment out LOC in report
Diffstat (limited to 'src')
-rw-r--r-- | src/MenuItem.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs index d72e546..af6d8ac 100644 --- a/src/MenuItem.mjs +++ b/src/MenuItem.mjs | |||
@@ -177,8 +177,8 @@ export const renderResults = ({ modal, modalContent }, map) => | |||
177 | sourceCode.innerHTML = `<a href="${map.renderer.url ?? map.renderer.use}">Source Code</a>` | 177 | sourceCode.innerHTML = `<a href="${map.renderer.url ?? map.renderer.use}">Source Code</a>` |
178 | modalContent.appendChild(sourceCode) | 178 | modalContent.appendChild(sourceCode) |
179 | const printDetails = result => { | 179 | const printDetails = result => { |
180 | const funcBody = result.func.toString() | 180 | // const funcBody = result.func.toString() |
181 | const loc = funcBody.split('\n').length | 181 | // const loc = funcBody.split('\n').length |
182 | const color = | 182 | const color = |
183 | { | 183 | { |
184 | success: 'green', | 184 | success: 'green', |
@@ -189,7 +189,7 @@ export const renderResults = ({ modal, modalContent }, map) => | |||
189 | printObject( | 189 | printObject( |
190 | result, | 190 | result, |
191 | modalContent, | 191 | modalContent, |
192 | `${result.func.name} <span style='float: right;'>${loc}LOC\x20\x20\x20<span style='display: inline-block; width: 100px; color: ${color};'>${result.state}</span></span>` | 192 | `${result.func.name} <span style='float: right;'><span style='display: inline-block; width: 100px; color: ${color};'>${result.state}</span></span>` |
193 | ) | 193 | ) |
194 | } | 194 | } |
195 | 195 | ||