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,statements,files";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);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.loc.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"statements"),AJS.sonar.utils.getMetricFromMetricsArray(a,"statements"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.loc.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"files"),AJS.sonar.utils.getMetricFromMetricsArray(a,"files"),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};