diff --git a/README.md b/README.md index bab043fe..e0abeb32 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Compatibility matrix from checkstyle team: Checkstyle Plugin|Sonar min|Sonar max|Checkstyle|Jdk -----------------|---------|---------|----------|--- +4.25|6.7 |7.7+|8.25|1.8 4.24|6.7 |7.7+|8.24|1.8 4.23|6.7 |7.7+|8.23|1.8 4.22|6.7 |7.7+|8.22|1.8 diff --git a/pom.xml b/pom.xml index 69a2dd15..952a2566 100644 --- a/pom.xml +++ b/pom.xml @@ -81,7 +81,7 @@ - 8.24 + 8.25 6.7 5.12.0.17701 2.17 diff --git a/src/main/java/org/sonar/plugins/checkstyle/CheckstyleExecutor.java b/src/main/java/org/sonar/plugins/checkstyle/CheckstyleExecutor.java index 7e8a03a2..13391508 100644 --- a/src/main/java/org/sonar/plugins/checkstyle/CheckstyleExecutor.java +++ b/src/main/java/org/sonar/plugins/checkstyle/CheckstyleExecutor.java @@ -34,6 +34,7 @@ import java.util.Objects; import java.util.stream.Collectors; +import com.puppycrawl.tools.checkstyle.api.AutomaticBean; import org.apache.commons.io.FileUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -103,7 +104,7 @@ private void executeWithClassLoader(URLClassLoader projectClassloader) { if (xmlReport != null) { LOG.info("Checkstyle output report: {}", xmlReport.getAbsolutePath()); xmlOutput = FileUtils.openOutputStream(xmlReport); - checker.addListener(new XMLLogger(xmlOutput, true)); + checker.addListener(new XMLLogger(xmlOutput, AutomaticBean.OutputStreamOptions.CLOSE)); } checker.setCharset(configuration.getCharset().name()); diff --git a/src/main/resources/org/sonar/l10n/checkstyle.properties b/src/main/resources/org/sonar/l10n/checkstyle.properties index 17740b76..ab62aa3c 100644 --- a/src/main/resources/org/sonar/l10n/checkstyle.properties +++ b/src/main/resources/org/sonar/l10n/checkstyle.properties @@ -200,6 +200,7 @@ rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineChe rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck.param.ignoreCase=Controls whether to ignore case when searching. Default value is false. rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck.param.format=illegal pattern. Default value is ^$ (empty). rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck.param.maximum=The maximum number of matches required in each file. Default value is 0. +rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck.param.matchAcrossLines=Control whether to match expressions across multiple lines. rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck.param.fileExtensions=file type extension of files to process rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpOnFilenameCheck.name=Regexp On Filename rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpOnFilenameCheck.param.folderPattern=Regular expression to match the folder path against. diff --git a/src/main/resources/org/sonar/plugins/checkstyle/rules.xml b/src/main/resources/org/sonar/plugins/checkstyle/rules.xml index 9a4212ef..a3b72891 100644 --- a/src/main/resources/org/sonar/plugins/checkstyle/rules.xml +++ b/src/main/resources/org/sonar/plugins/checkstyle/rules.xml @@ -156,6 +156,9 @@ + + false +