import org.sonar.server.computation.language.LanguageRepositoryImpl;
import org.sonar.server.computation.measure.MeasureComputersHolderImpl;
import org.sonar.server.computation.measure.MeasureRepositoryImpl;
-import org.sonar.server.computation.measure.newcoverage.NewCoverageMetricKeysModule;
import org.sonar.server.computation.metric.MetricModule;
import org.sonar.server.computation.period.PeriodsHolderImpl;
import org.sonar.server.computation.qualitygate.EvaluationResultTextConverterImpl;
QualityGateServiceImpl.class,
EvaluationResultTextConverterImpl.class,
- // new coverage measures
- NewCoverageMetricKeysModule.class,
-
// issues
RuleCacheLoader.class,
RuleRepositoryImpl.class,
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.computation.measure.newcoverage;
-
-import org.sonar.api.measures.CoreMetrics;
-
-public class FileCoverageMetricKeys implements NewCoverageMetricKeys {
- @Override
- public String coverageLineHitsData() {
- return CoreMetrics.COVERAGE_LINE_HITS_DATA_KEY;
- }
-
- @Override
- public String conditionsByLine() {
- return CoreMetrics.CONDITIONS_BY_LINE_KEY;
- }
-
- @Override
- public String coveredConditionsByLine() {
- return CoreMetrics.COVERED_CONDITIONS_BY_LINE_KEY;
- }
-
- /* output metrics */
- @Override
- public String newLinesToCover() {
- return CoreMetrics.NEW_LINES_TO_COVER_KEY;
- }
-
- @Override
- public String newUncoveredLines() {
- return CoreMetrics.NEW_UNCOVERED_LINES_KEY;
- }
-
- @Override
- public String newConditionsToCover() {
- return CoreMetrics.NEW_CONDITIONS_TO_COVER_KEY;
- }
-
- @Override
- public String newUncoveredConditions() {
- return CoreMetrics.NEW_UNCOVERED_CONDITIONS_KEY;
- }
-}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.computation.measure.newcoverage;
-
-import org.sonar.api.measures.CoreMetrics;
-
-public class ItFileCoverageMetricKeys implements NewCoverageMetricKeys {
- @Override
- public String coverageLineHitsData() {
- return CoreMetrics.IT_COVERAGE_LINE_HITS_DATA_KEY;
- }
-
- @Override
- public String conditionsByLine() {
- return CoreMetrics.IT_CONDITIONS_BY_LINE_KEY;
- }
-
- @Override
- public String coveredConditionsByLine() {
- return CoreMetrics.IT_COVERED_CONDITIONS_BY_LINE_KEY;
- }
-
- /* output metrics */
- @Override
- public String newLinesToCover() {
- return CoreMetrics.NEW_IT_LINES_TO_COVER_KEY;
- }
-
- @Override
- public String newUncoveredLines() {
- return CoreMetrics.NEW_IT_UNCOVERED_LINES_KEY;
- }
-
- @Override
- public String newConditionsToCover() {
- return CoreMetrics.NEW_IT_CONDITIONS_TO_COVER_KEY;
- }
-
- @Override
- public String newUncoveredConditions() {
- return CoreMetrics.NEW_IT_UNCOVERED_CONDITIONS_KEY;
- }
-}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.computation.measure.newcoverage;
-
-/**
- * Holds the keys of the 3 metrics from which are computed 4 new coverage metrics.
- */
-public interface NewCoverageMetricKeys {
- /* input metrics */
- String coverageLineHitsData();
-
- String conditionsByLine();
-
- String coveredConditionsByLine();
-
- /* output metrics */
- String newLinesToCover();
-
- String newUncoveredLines();
-
- String newConditionsToCover();
-
- String newUncoveredConditions();
-}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.computation.measure.newcoverage;
-
-import org.sonar.core.platform.Module;
-
-public class NewCoverageMetricKeysModule extends Module {
- @Override
- protected void configureModule() {
- add(
- FileCoverageMetricKeys.class,
- ItFileCoverageMetricKeys.class,
- OverallFileCoverageMetricKeys.class);
- }
-}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.server.computation.measure.newcoverage;
-
-import org.sonar.api.measures.CoreMetrics;
-
-public class OverallFileCoverageMetricKeys implements NewCoverageMetricKeys {
- @Override
- public String coverageLineHitsData() {
- return CoreMetrics.OVERALL_COVERAGE_LINE_HITS_DATA_KEY;
- }
-
- @Override
- public String conditionsByLine() {
- return CoreMetrics.OVERALL_CONDITIONS_BY_LINE_KEY;
- }
-
- @Override
- public String coveredConditionsByLine() {
- return CoreMetrics.OVERALL_COVERED_CONDITIONS_BY_LINE_KEY;
- }
-
- /* output metrics */
- @Override
- public String newLinesToCover() {
- return CoreMetrics.NEW_OVERALL_LINES_TO_COVER_KEY;
- }
-
- @Override
- public String newUncoveredLines() {
- return CoreMetrics.NEW_OVERALL_UNCOVERED_LINES_KEY;
- }
-
- @Override
- public String newConditionsToCover() {
- return CoreMetrics.NEW_OVERALL_CONDITIONS_TO_COVER_KEY;
- }
-
- @Override
- public String newUncoveredConditions() {
- return CoreMetrics.NEW_OVERALL_UNCOVERED_CONDITIONS_KEY;
- }
-}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-@ParametersAreNonnullByDefault
-package org.sonar.server.computation.measure.newcoverage;
-
-import javax.annotation.ParametersAreNonnullByDefault;