All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
scripts.views.sonar-loc-view-min.js Maven / Gradle / Ivy
AJS.$.namespace("AJS.sonar.views.loc");AJS.sonar.views.loc.VIEW_NAME="loc";AJS.sonar.views.loc.METRICS="ncloc,lines,classes,packages,functions,accessors";AJS.sonar.views.loc.generateView=function(D,F,G,A){AJS.sonar.text.load(D);var B=AJS.sonar.views.createViewContainer();var C=AJS.sonar.views.createColumn(true);C.append(AJS.sonar.views.createHeader("sonar.views.loc"));AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.loc.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"ncloc"),AJS.sonar.utils.getMetricFromMetricsArray(A,"ncloc"),true).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.loc.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"lines"),AJS.sonar.utils.getMetricFromMetricsArray(A,"lines"),false).appendTo(C);C.appendTo(B);var E=AJS.sonar.views.createColumn(false);E.append(AJS.sonar.views.createHeader("sonar.views.loc.classes.header"));AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.loc.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"classes"),AJS.sonar.utils.getMetricFromMetricsArray(A,"classes"),true).appendTo(E);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.loc.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"packages"),AJS.sonar.utils.getMetricFromMetricsArray(A,"packages"),false).appendTo(E);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.loc.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"functions"),AJS.sonar.utils.getMetricFromMetricsArray(A,"functions"),false).appendTo(E);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.loc.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"accessors"),AJS.sonar.utils.getMetricFromMetricsArray(A,"accessors"),false).appendTo(E);E.appendTo(B);AJS.sonar.views.addViewFooter(B,F.host);return B};