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-totalquality-view-min.js Maven / Gradle / Ivy
AJS.$.namespace("AJS.sonar.views.totalquality");AJS.sonar.views.totalquality.VIEW_NAME="totalquality";AJS.sonar.views.totalquality.METRICS="coverage,violations_density,isoqa_tc,isoqa_cc,isoqa_ac,isoqa_ca,isoqa_ce,isoqa_a,isoqa_i,isoqa_d,isoqa_dc,isoqa_dit,isoqa_cbo,isoqa_rfc,isoqa_lcom,isoqa_design_nom,isoqa_design_rfc,isoqa_design_cbo,isoqa_design_dit,isoqa_design,isoqa_architecture_coh,isoqa_architecture_adi,isoqa_architecture,isoqa_ts,isoqa_code,isoqa_doc,isoqa_dry,isoqa_tq";AJS.sonar.views.totalquality.CHART_METRICS=[{id:"isoqa_architecture_coh",text:"isoqa_architecture_coh"},{id:"isoqa_architecture_adi",text:"isoqa_architecture_adi"},{id:"isoqa_design_nom",text:"isoqa_design_nom"},{id:"isoqa_design_rfc",text:"isoqa_design_rfc"},{id:"isoqa_design_cbo",text:"isoqa_design_cbo"},{id:"isoqa_design_dit",text:"isoqa_design_dit"},{id:"isoqa_doc",text:"isoqa_doc"},{id:"isoqa_dry",text:"isoqa_dry"},{id:"violations_density",text:"violations_density"},{id:"coverage",text:"chart_coverage"}];AJS.sonar.views.totalquality.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.css("width","38%");C.append(AJS.sonar.views.createHeader("sonar.views.totalquality"));AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_tq"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_tq"),true).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"coverage"),AJS.sonar.utils.getMetricFromMetricsArray(A,"coverage"),false).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_architecture"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_architecture"),false).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_design"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_design"),false).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_code"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_code"),false).appendTo(C);C.append(AJS.$(" "));C.append(AJS.sonar.views.createHeader("sonar.views.totalquality.distance"));AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_d"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_d"),true).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_tc"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_tc"),false).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_ac"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_ac"),false).appendTo(C);AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_cc"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_cc"),false).appendTo(C);C.append(AJS.$(" "));C.append(AJS.sonar.views.createHeader("sonar.views.totalquality.cycles"));AJS.sonar.views.createMeasureRow(F.host,AJS.sonar.views.totalquality.VIEW_NAME,G.id,AJS.sonar.utils.getMeasureFromResource(G,"isoqa_dc"),AJS.sonar.utils.getMetricFromMetricsArray(A,"isoqa_dc"),true).appendTo(C);C.appendTo(B);var E=AJS.sonar.views.createColumn(false);E.css("width","58%");AJS.sonar.views.totalquality.generateTotalQualityChart(F.host,G,A).appendTo(E);E.appendTo(B);AJS.sonar.views.addViewFooter(B,F.host);return B};AJS.sonar.views.totalquality.generateTotalQualityChart=function(B,E,A){var D="";var C="";AJS.$(AJS.sonar.views.totalquality.CHART_METRICS).each(function(G,H){if(D.length>0){D+=",";C+=","}var F=AJS.sonar.utils.getMeasureFromResource(E,H.id);D+=AJS.sonar.text.getMsg("sonar.views.totalquality."+H.text);C+=F.val});return AJS.$(" ").attr({width:250,height:250,src:B+"/chart?ck=xradar&w=250&h=250&c=777777|F8A036&m=100&g=0.25&l="+D+"&v="+C})};