All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.views.sonar-technicaldept-view-min.js Maven / Gradle / Ivy

AJS.$.namespace("AJS.sonar.views.technicaldept");AJS.sonar.views.technicaldept.VIEW_NAME="technicaldept";AJS.sonar.views.technicaldept.METRICS="technical_debt_repart,technical_debt_days,technical_debt_ratio,technical_debt";AJS.sonar.views.technicaldept.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.technicaldept"));AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.technicaldept.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"technical_debt_ratio"),AJS.sonar.utils.getMetricFromMetricsArray(a,"technical_debt_ratio"),true).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.technicaldept.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"technical_debt"),AJS.sonar.utils.getMetricFromMetricsArray(a,"technical_debt"),false).prepend(AJS.$("").text("$ ")).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.technicaldept.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"technical_debt_days"),AJS.sonar.utils.getMetricFromMetricsArray(a,"technical_debt_days"),false).appendTo(c);c.appendTo(b);var e=AJS.sonar.views.createColumn(false);AJS.sonar.views.technicaldept.createTechnicaldeptChart(f.host,AJS.sonar.utils.getMeasureFromResource(g,"technical_debt_repart")).appendTo(e);e.appendTo(b);AJS.sonar.views.addViewFooter(b,f.host);return b};AJS.sonar.views.technicaldept.createTechnicaldeptChart=function(a,c){var d="";var b="";AJS.$(c.data.split(";")).each(function(f,g){if(d.length>0){d+="|";b+=","}var e=g.split("=");d+=e[0];b+=e[1]});return AJS.$("").attr({width:248,height:65,src:a+"/gchart?chs=248x65&chd=t:"+b+"&cht=p&chl="+d})};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy