Skip to content

Commit 856b8b0

Browse files
committed
fix(detector): layout of multiple smells
1 parent b5ae9ef commit 856b8b0

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

detector/src/reporters/layout/example.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"
106106
</tr>
107107
</thead>
108108
<tbody>
109-
<tr>
110-
{{#each smells}}
109+
{{#each smells}}
110+
<tr>
111111
<td class="p-4 border-b border-blue-gray-50">
112112
<div data-testid="{{@../index}}-smell-name-{{@index}}">{{this.type}}</div>
113113
</td>
@@ -117,8 +117,8 @@ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"
117117
<td class="p-4 border-b border-blue-gray-50">
118118
<div data-testid="{{@../index}}-smell-start-line-{{@index}}">{{this.lineStart}}</div>
119119
</td>
120-
{{/each }}
121-
</tr>
120+
</tr>
121+
{{/each }}
122122
</tbody>
123123
</table>
124124
{{/if}}

run-report.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
clear && \
4+
npm run build && \
5+
rm smelly-report.html && \
6+
npm run cli -w cli -- "$1" typescript --report=html --report-output=$(pwd) && \
7+
open smelly-report.html

0 commit comments

Comments
 (0)