Sha256: fd25b5b5ce333d7f33c53796bad301e29b0f4994872af915c40f078e688f875b

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 KB

Contents

<div class="file-header group <%= Config.suppress_ratings ? 'unrated' : 'rated' %>">
  <span class="rating rating-<%= @analysed_module.rating.to_s.downcase %> circled-text circle">
    <%= @analysed_module.rating %>
  </span>
  <h2 class="file-name"><%= @analysed_module.name %></h2>

  <span class="file-committed-at">
    <% if @analysed_module.committed_at %>
      Updated <%= timeago_tag(@analysed_module.committed_at) %>
    <% else %>
      Never committed
    <% end %>
  </span>

  <div class="file-stats group">
    <div class="file-stat">
      <%= @analysed_module.complexity %> complexity
    </div>
    <div class="file-stat">
      <%= @analysed_module.complexity_per_method %> complexity per method
    </div>
    <div class="file-stat">
      <%= @analysed_module.churn %> churn
    </div>
    <div class="file-stat">
      <%= @analysed_module.methods_count %> methods
    </div>
    <div class="file-stat">
      <%= @analysed_module.duplication %> duplication
    </div>
  </div>

  <% if @analysed_module.smells? %>
    <button id="js-toggle-smells" class="smells-toggle-button button">Toggle Smells</button>
  <% end %>
</div>

<code class="prettyprint linenums lang-ruby file-code js-file-code"><%= yield %></code>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rubycritic-3.0.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.9.4 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.9.3 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.9.2 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.9.1 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.9.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.8.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.7.1 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.7.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.6.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.5.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.4.1 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.4.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.3.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.2.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.1.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-2.0.0 lib/rubycritic/generators/html/templates/code_file.html.erb
rubycritic-1.4.0 lib/rubycritic/generators/html/templates/code_file.html.erb