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-comments-view-min.js Maven / Gradle / Ivy
AJS.$.namespace("AJS.sonar.views.comments");AJS.sonar.views.comments.VIEW_NAME="comments";AJS.sonar.views.comments.METRICS="comment_lines_density,comment_lines,public_documented_api_density,public_undocumented_api,commented_out_code_lines,duplicated_lines_density,duplicated_lines,duplicated_blocks,duplicated_files";AJS.sonar.views.comments.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.comments"));AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"comment_lines_density"),AJS.sonar.utils.getMetricFromMetricsArray(a,"comment_lines_density"),true).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"comment_lines"),AJS.sonar.utils.getMetricFromMetricsArray(a,"comment_lines"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"public_documented_api_density"),AJS.sonar.utils.getMetricFromMetricsArray(a,"public_documented_api_density"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"public_undocumented_api"),AJS.sonar.utils.getMetricFromMetricsArray(a,"public_undocumented_api"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"commented_out_code_lines"),AJS.sonar.utils.getMetricFromMetricsArray(a,"commented_out_code_lines"),false).appendTo(c);c.appendTo(b);var e=AJS.sonar.views.createColumn(false);e.append(AJS.sonar.views.createHeader("sonar.views.comments.duplications"));AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"duplicated_lines_density"),AJS.sonar.utils.getMetricFromMetricsArray(a,"duplicated_lines_density"),true).appendTo(e);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"duplicated_lines"),AJS.sonar.utils.getMetricFromMetricsArray(a,"duplicated_lines"),false).appendTo(e);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"duplicated_blocks"),AJS.sonar.utils.getMetricFromMetricsArray(a,"duplicated_blocks"),false).appendTo(e);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.comments.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"duplicated_files"),AJS.sonar.utils.getMetricFromMetricsArray(a,"duplicated_files"),false).appendTo(e);e.appendTo(b);AJS.sonar.views.addViewFooter(b,f.host);return b};