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,"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};