--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a0d7af0d-31f0-4168-baf5-2a99d3670d4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<groupId>com.google.guava</groupId> <artifactId>guava</artifactId>- <version>18.0</version>+ <version>15.0</version> </dependency>
$ mvn install
- <checkstyle.version>6.4.1</checkstyle.version>+ <checkstyle.version>6.8-SNAPSHOT</checkstyle.version>
$ mvn test
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.364 sec <<< FAILURE! - in org.sonar.plugins.checkstyle.CheckstyleProfileExporterTestsingleCheckstyleRulesToExport(org.sonar.plugins.checkstyle.CheckstyleProfileExporterTest) Time elapsed: 0.035 sec <<< FAILURE!java.lang.AssertionError: Diff: org.custommonkey.xmlunit.Diff[different] Expected attribute value 'LineLength' but was 'LocalFinalVariableName' - comparing <module name="LineLength"...> at /module[1]/module[4]/module[3]/@name to <module name="LocalFinalVariableName"...> at /module[1]/module[4]/module[3]/@name
XML: <?xml version="1.0" encoding="UTF-8"?><!-- Generated by Sonar --><module name="Checker"><module name="SuppressionCommentFilter" /><module name="SuppressWarningsFilter" /><module name="JavadocPackage"><property name="severity" value="warning"/></module><module name="TreeWalker"><module name="FileContentsHolder"/> <module name="SuppressWarningsHolder"/> <module name="LineLength"><property name="severity" value="error"/></module><module name="LocalFinalVariableName"><property name="severity" value="info"/></module></module></module> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.sonar.plugins.checkstyle.CheckstyleTestUtils.assertSimilarXml(CheckstyleTestUtils.java:54) at org.sonar.plugins.checkstyle.CheckstyleTestUtils.assertSimilarXmlWithResource(CheckstyleTestUtils.java:58) at org.sonar.plugins.checkstyle.CheckstyleProfileExporterTest.singleCheckstyleRulesToExport(CheckstyleProfileExporterTest.java:87)
--- a/src/test/resources/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest/singleCheckstyleRulesToExport.xml+++ b/src/test/resources/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest/singleCheckstyleRulesToExport.xml@@ -9,11 +9,11 @@ <module name="TreeWalker"> <module name="FileContentsHolder"/> <module name="SuppressWarningsHolder"/>- <module name="LocalFinalVariableName">- <property name="severity" value="info"/>- </module> <module name="LineLength"> <property name="severity" value="error"/> </module>+ <module name="LocalFinalVariableName">+ <property name="severity" value="info"/>+ </module> </module> </module>
$ mvn clean package
$ rm [SONAR_HOME]/extensions/plugins/sonar-checkstyle-plugin-2.3.jar
$ cp target/sonar-checkstyle-plugin-2.4-SNAPSHOT.jar [SONAR_HOME]/extensions/plugins/
# restart sonar
You can override guava version that checkstyle use and use your version.
Checkstyle library got stable release cycle , we release it each month. We are already 6.11.2 and difference with 6.4 is huge. Custom extensions are also affected.
Thanks,
Roman Ivanov
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/1dfe6ab4-827c-454a-ae30-bc3766bbe40e%40googlegroups.com.