Language property class contains the properties related to the language.
----------------------------------------------------------------------------------------------
package com.plugin.sonar.language.foo;
import org.sonar.api.config.PropertyDefinition;
import org.sonar.api.resources.Qualifiers;
import java.util.Collections;
import java.util.List;
import static com.plugin.sonar.util.FooConstants.*;
public class FooLanguageProperties {
private FooLanguageProperties() {
// only statics
}
public static List<PropertyDefinition> getProperties() {
return Collections.singletonList(PropertyDefinition.builder(FILE_SUFFIXES_KEY)//".foo,.f"
.defaultValue(FILE_SUFFIXES_DEFAULT_VALUE)
.category(LANGUAGE_NAME)
.name("File Suffixes")
.description("Comma-separated list of suffixes for files to analyze.")
.onQualifiers(Qualifiers.PROJECT)
.build());
}
}
No comments:
Post a Comment