Package hudson.plugins.rubyMetrics.railsStats.model

Examples of hudson.plugins.rubyMetrics.railsStats.model.RailsStatsResults.addMetric()


                for (int i = 1; i < header.length; i++) { //columns[0] == rails class type
                    metrics.put(RailsStatsMetrics.toRailsStatsMetrics(header[i].trim()), Integer.valueOf(columns[i].trim()));
                }

                response.addMetric(columns[0].trim(), metrics);
            } else {
                Pattern pattern = Pattern.compile("CodeLOC:([0-9]+)TestLOC:([0-9]+)CodetoTestRatio:([0-9:.]+)");
                Matcher matcher = pattern.matcher(columns[0].replaceAll("[\\s\\r\\n+-]+", ""));
                if (matcher.matches()) {
                    response.setCodeLocSummary(matcher.group(1));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.