
com.qualinsight.plugins.sonarqube.smell.api.annotation.Smells Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qualinsight-plugins-sonarqube-smell-api Show documentation
Show all versions of qualinsight-plugins-sonarqube-smell-api Show documentation
QualInsight code smells annotation api.
/*
* qualinsight-plugins-sonarqube-smell
* 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.smell.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Source retention annotation that can be used to report multiple Code Smells.
*
* @author Michel Pawlak
*/
@Retention(RetentionPolicy.SOURCE)
@Target({
ElementType.PACKAGE,
ElementType.TYPE,
ElementType.METHOD,
ElementType.CONSTRUCTOR,
ElementType.FIELD,
ElementType.PARAMETER,
ElementType.LOCAL_VARIABLE
})
public @interface Smells {
/**
* All Smell annotations that have been put on the annotated element.
*
* @return Array of Smell annotations
*/
public Smell[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy