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

com.qualinsight.plugins.sonarqube.wtf.internal.WTFPlugin Maven / Gradle / Ivy

Go to download

This plugin allows developers to programmatically report issues usually not seen by SonarQube but which should be taken into consideration when evaluating a project's technical debt. Usage documentation is available on http://sonarqube.wtf/

The newest version!
/*
 * qualinsight-plugins-sonarqube-wtf
 * Copyright (c) 2015, QualInsight
 * http://www.qualinsight.com/
 *
 * This program 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.
 *
 * This program 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, you can retrieve a copy
 * from .
 */
package com.qualinsight.plugins.sonarqube.wtf.internal;

import java.util.List;
import org.sonar.api.SonarPlugin;
import com.google.common.collect.ImmutableList;
import com.qualinsight.plugins.sonarqube.wtf.internal.extension.WTFChecksRegistrar;
import com.qualinsight.plugins.sonarqube.wtf.internal.extension.WTFMeasuresDecorator;
import com.qualinsight.plugins.sonarqube.wtf.internal.extension.WTFMeasuresSensor;
import com.qualinsight.plugins.sonarqube.wtf.internal.extension.WTFMetrics;
import com.qualinsight.plugins.sonarqube.wtf.internal.extension.WTFRulesDefinition;
import com.qualinsight.plugins.sonarqube.wtf.internal.extension.WTFWidget;

/**
 * Core WTF! SonarPlugin class. It declares all extensions used by the plugin.
 *
 * @author Michel Pawlak
 */
public final class WTFPlugin extends SonarPlugin {

    @SuppressWarnings("rawtypes")
    @Override
    public List getExtensions() {
        return ImmutableList.builder()
            .add(WTFChecksRegistrar.class)
            .add(WTFRulesDefinition.class)
            .add(WTFMetrics.class)
            .add(WTFMeasuresSensor.class)
            .add(WTFMeasuresDecorator.class)
            .add(WTFWidget.class)
            .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy