All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sonar-plugins.dotnet.sonar-dotnet-ndeps-plugin.2.1.source-code.lcom4_viewer.html.erb Maven / Gradle / Ivy



<%
   lcom4 = measure('lcom4')
   lcom4_blocks = measure('lcom4_blocks')
   merged_types = measure('ndeps_merged_types')
%>
<% if merged_types && merged_types.data %>
The LCOM4 blocks displayed below comes from several types:
    <% mergedTypes = merged_types.data.split(',') mergedTypes.each do |mergedType| %>
  • <%= mergedType %>
  • <% end %>
<% end %>

<%= Metric.by_key('lcom4').description -%>: <%= lcom4 ? number_with_precision(lcom4.value(), :precision => 0) : '-' -%>

<% if lcom4_blocks && lcom4_blocks.data %> <% blocks = JSON(lcom4_blocks.data) blocks.each_with_index do |block, index| %> <% end %>
<%= index+1 -%> <% block.each do |hash| %> <% end %>
<%= image_tag "q/#{hash['q']}.png" -%> <%= hash['n'] -%>
<% end %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy