|
10 | 10 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
11 | 11 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
|
12 | 12 | <link rel="stylesheet" type="text/css" href="site.css">
|
| 13 | + <style> |
| 14 | + div.tooltip-inner { |
| 15 | + max-width: 700px; |
| 16 | + } |
| 17 | + </style> |
13 | 18 | <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
|
14 | 19 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
|
15 | 20 | </head>
|
|
86 | 91 | <table class="table table-striped table-hover ">
|
87 | 92 | <thead>
|
88 | 93 | <tr>
|
89 |
| - <th>Classe</th> |
90 |
| - <th>Nome do método</th> |
| 94 | + <th>Classe/Nome do método</th> |
91 | 95 | <th>SLOC <span class="glyphicon glyphicon-exclamation-sign cor-azul" data-original-title="Linhas de Código(Source Lines Of Code)" data-toggle="tooltip" aria-hidden="true"></span></th>
|
92 | 96 | <th>Comp. Ciclomática</th>
|
93 | 97 | <th>Manutenibilidade</th>
|
|
97 | 101 | @foreach (MetodoRuim metodoRuim in md.MetodosRuins)
|
98 | 102 | {
|
99 | 103 | <tr>
|
100 |
| - <td>@metodoRuim.ClassName</td> |
101 |
| - <td>@metodoRuim.NomeMetodo</td> |
| 104 | + <td>@(metodoRuim.ClassName + "." + metodoRuim.NomeMetodo) <span class="glyphicon glyphicon-exclamation-sign cor-azul" data-original-title="@(metodoRuim.FullClassName + "." + metodoRuim.NomeMetodo)" data-toggle="tooltip" aria-hidden="true"></span></td> |
102 | 105 | <td>@metodoRuim.QuantidadeDeLinhas</td>
|
103 | 106 | <td>@metodoRuim.Complexidade</td>
|
104 | 107 | <td>@metodoRuim.Manutenibilidade.ToString("N0")</td>
|
|
122 | 125 | </div>
|
123 | 126 | <div id="collapse@(type.Key)" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading@(type.Key)" aria-expanded="false">
|
124 | 127 | <div class="panel-body">
|
125 |
| - <ul> |
126 |
| - @foreach (var typeWithMetric in type.Value) |
127 |
| - { |
128 |
| - <li>@typeWithMetric.FullName</li> |
129 |
| - } |
130 |
| - </ul> |
| 128 | + <table class="table table-striped table-hover table-bordered"> |
| 129 | + <thead> |
| 130 | + <tr> |
| 131 | + <th>Classe</th> |
| 132 | + <th>Manutenibilidade <span class="glyphicon glyphicon-exclamation-sign cor-azul" data-original-title="Número de 0-100" data-toggle="tooltip" aria-hidden="true"></span></th> |
| 133 | + <th>Comp. Ciclomática <span class="glyphicon glyphicon-exclamation-sign cor-azul" data-original-title="Complexidade ciclomática" data-toggle="tooltip" aria-hidden="true"></span></th> |
| 134 | + <th>Profundidade de Herança</th> |
| 135 | + <th>Linhas de código</th> |
| 136 | + </tr> |
| 137 | + </thead> |
| 138 | + <tbody> |
| 139 | + @foreach (var typeWithMetric in type.Value) |
| 140 | + { |
| 141 | + <tr> |
| 142 | + <td>@typeWithMetric.Name <span class="glyphicon glyphicon-exclamation-sign cor-azul" data-original-title="@typeWithMetric.FullName" data-toggle="tooltip" aria-hidden="true"></td> |
| 143 | + <td>@typeWithMetric.MaintainabilityIndex.ToString("0")</td> |
| 144 | + <td>@typeWithMetric.CyclomaticComplexity</td> |
| 145 | + <td>@typeWithMetric.DepthOfInheritance</td> |
| 146 | + <td>@typeWithMetric.SourceLinesOfCode</td> |
| 147 | + </tr> |
| 148 | + } |
| 149 | + </tbody> |
| 150 | + </table> |
131 | 151 | </div>
|
132 | 152 | </div>
|
133 | 153 | </div>
|
|
137 | 157 | </div>
|
138 | 158 | <script type="text/javascript">
|
139 | 159 | $(function () {
|
140 |
| - $('[data-toggle="tooltip"]').tooltip(); |
| 160 | + $('[data-toggle="tooltip"]').tooltip({ trigger: "click" }); |
141 | 161 | $(".progress-bar-success").css("width", "@(md.Manutenibilidade)%");
|
142 | 162 | });
|
143 | 163 | </script>
|
|
0 commit comments