diff --git a/pom.xml b/pom.xml index fbf183a..d9d6a4e 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ sonar-golang-plugin - 1.2.11-rc10 + 1.2.11-rc11 Golang Golang Plugin for SonarQube: Golang, Golint diff --git a/src/main/java/fr/univartois/sonargo/core/settings/GoProperties.java b/src/main/java/fr/univartois/sonargo/core/settings/GoProperties.java index ba92867..084b89b 100644 --- a/src/main/java/fr/univartois/sonargo/core/settings/GoProperties.java +++ b/src/main/java/fr/univartois/sonargo/core/settings/GoProperties.java @@ -25,7 +25,6 @@ import java.util.List; -import org.sonar.api.CoreProperties; import org.sonar.api.config.PropertyDefinition; public class GoProperties { @@ -62,10 +61,7 @@ public static List getProperties() { .description("false if you want disabled the DTD verification for coverage file").build(), PropertyDefinition.builder(HIGHLIGHTING_KEY).defaultValue(HIGHLIGHTING_DEFAULT).category("Go") .name("Boolean for highlighting verification") - .description("false if you want disabled the highlighting").build(), - PropertyDefinition.builder(CoreProperties.PROJECT_INCLUSIONS_PROPERTY).defaultValue("**/**.go").build(), - PropertyDefinition.builder(CoreProperties.PROJECT_TEST_INCLUSIONS_PROPERTY) - .defaultValue("**/**_test.go").build()); + .description("false if you want disabled the highlighting").build()); } } diff --git a/src/test/java/fr/univartois/sonargo/GoPluginTest.java b/src/test/java/fr/univartois/sonargo/GoPluginTest.java index 162be5f..2fbcd2f 100644 --- a/src/test/java/fr/univartois/sonargo/GoPluginTest.java +++ b/src/test/java/fr/univartois/sonargo/GoPluginTest.java @@ -40,7 +40,7 @@ public void test() { javaPlugin.define(context); - assertEquals(15, context.getExtensions().size()); + assertEquals(13, context.getExtensions().size()); } diff --git a/src/test/java/fr/univartois/sonargo/core/settings/GoPropertiesTest.java b/src/test/java/fr/univartois/sonargo/core/settings/GoPropertiesTest.java index 7501d55..650c285 100644 --- a/src/test/java/fr/univartois/sonargo/core/settings/GoPropertiesTest.java +++ b/src/test/java/fr/univartois/sonargo/core/settings/GoPropertiesTest.java @@ -33,7 +33,7 @@ public class GoPropertiesTest { @Test public void test() { List l = GoProperties.getProperties(); - assertEquals(7, l.size()); + assertEquals(5, l.size()); assertEquals(GoProperties.REPORT_PATH_DEFAULT, l.get(0).defaultValue()); assertEquals(GoProperties.COVERAGE_REPORT_PATH_DEFAULT, l.get(1).defaultValue()); assertEquals(GoProperties.JUNIT_REPORT_PATH_DEFAULT, l.get(2).defaultValue());