Sha256: 3c3f64fec23277240747857491258024b4443b13bac6641aec2cd23c56d7881e

Contents?: true

Size: 1.7 KB

Versions: 9

Compression:

Stored size: 1.7 KB

Contents

<h3>Saikuro Results</h3>
<p><a href='http://saikuro.rubyforge.org/'>Saikuro</a> analyzes ruby code for cyclomatic complexity.</p>

<h2>Analyzed Methods</h2>
  <table>
    <tr>
      <th>Method Name</th>
      <th>Complexity</th>
      <th># Lines</th>
    </tr>
    <% @saikuro[:methods].each do |method| %>
    <tr>
      <td><%= method[:name] %></td>
      <td><%= method[:complexity] %></td>
      <td><%= method[:lines] %></td>
    </tr>
    <% end %>
  </table>



<h2>Analyzed Classes</h2>
  <table>
    <tr>
      <th>Class Name</th>
      <th>Complexity</th>
      <th># Lines</th>
    </tr>
    <% @saikuro[:classes].each do |klass| %>
    <tr>
      <td><%= klass[:name] %></td>
      <td><%= klass[:complexity] %></td>
      <td><%= klass[:lines] %></td>
    </tr>
    <% end %>
  </table>


<h2>Analyzed Files</h2>
<% @saikuro[:files].each do |file| %>
  <% file[:classes].each do |klass| %>
      <% if !klass[:methods].empty? %>
        <h3><%=link_to_filename(file[:filename])%></h3>
        <h4>Class : <%= klass[:class_name] %></h4>
        <h5>Total complexity : <%= klass[:complexity] %></h5>
        <h5>Total lines : <%= klass[:lines] %></h5>
        <table>
            <tr>
              <th>Method</th>
              <th>Complexity</th>
              <th># Lines</th>
            </tr>
          <% klass[:methods].each do |method| %>
            <tr>
              <td>
                <%= method[:name] %>
              </td>
              <td>
                <%= method[:complexity] %>
              </td>
              <td>
                <%= method[:lines]  %>
              </td>
            </tr>
          <% end %>
        </table>
      <% end %>
  <% end %>
<% end %>

<%= render_partial 'report_footer' %>

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
metric_fu-4.13.0 lib/metric_fu/metrics/saikuro/report.html.erb
fastruby-metric_fu-5.0.0 lib/metric_fu/metrics/saikuro/report.html.erb
code_metric_fu-4.14.4 lib/metric_fu/metrics/saikuro/report.html.erb
code_metric_fu-4.14.3 lib/metric_fu/metrics/saikuro/report.html.erb
code_metric_fu-4.14.2 lib/metric_fu/metrics/saikuro/report.html.erb
code_metric_fu-4.14.1 lib/metric_fu/metrics/saikuro/report.html.erb
code_metric_fu-4.14.0 lib/metric_fu/metrics/saikuro/report.html.erb
metric_fu-4.12.0 lib/metric_fu/metrics/saikuro/report.html.erb
metric_fu-4.11.4 lib/metric_fu/metrics/saikuro/report.html.erb