Skip to content

Fixed issues with DocumentName and DocumentNameBuilder.

62d3686
Select commit
Loading
Failed to load commit list.
Draft

RAT-541: create testhelpers.data package #655

Fixed issues with DocumentName and DocumentNameBuilder.
62d3686
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 5, 2026 in 1m 25s

Quality Gate failed

Failed conditions
46.2% Coverage on New Code (required ≥ 80%)
E Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 358 in apache-rat-core/src/main/java/org/apache/rat/config/exclusion/ExclusionProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "pattern" 4 times.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6Dedh5TlzZN0sxhTQl&open=AZ6Dedh5TlzZN0sxhTQl&pullRequest=655

Check failure on line 939 in apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Disable access to external entities in XML parsing.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedlzTlzZN0sxhTQr&open=AZ6DedlzTlzZN0sxhTQr&pullRequest=655

Check warning on line 780 in apache-rat-core/src/test/java/org/apache/rat/ReporterOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use isZero() instead.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedpCTlzZN0sxhTRN&open=AZ6DedpCTlzZN0sxhTRN&pullRequest=655

Check failure on line 913 in apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "IXmlWriter" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedlzTlzZN0sxhTQq&open=AZ6DedlzTlzZN0sxhTQq&pullRequest=655

Check failure on line 333 in apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "IXmlWriter" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedboTlzZN0sxhTQR&open=AZ6DedboTlzZN0sxhTQR&pullRequest=655

Check failure on line 372 in apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Disable access to external entities in XML parsing.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedboTlzZN0sxhTQW&open=AZ6DedboTlzZN0sxhTQW&pullRequest=655

Check failure on line 342 in apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "IXmlWriter" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedboTlzZN0sxhTQT&open=AZ6DedboTlzZN0sxhTQT&pullRequest=655

Check warning on line 50 in apache-rat-core/src/test/java/org/apache/rat/testhelpers/data/AbstractTestDataProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "NO_OPTIONS" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DednrTlzZN0sxhTQ3&open=AZ6DednrTlzZN0sxhTQ3&pullRequest=655

Check warning on line 249 in apache-rat-core/src/test/java/org/apache/rat/ReporterOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "validator" local variable.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedpCTlzZN0sxhTRB&open=AZ6DedpCTlzZN0sxhTRB&pullRequest=655

Check warning on line 94 in apache-rat-core/src/test/java/org/apache/rat/document/DocumentNameBuilderTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6YfY6zWY_hOOBLvJtn&open=AZ6YfY6zWY_hOOBLvJtn&pullRequest=655

Check warning on line 38 in apache-rat-core/src/test/java/org/apache/rat/testhelpers/BaseOptionCollection.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add the "@Override" annotation above this method signature

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6Dedn0TlzZN0sxhTQ8&open=AZ6Dedn0TlzZN0sxhTQ8&pullRequest=655

Check warning on line 324 in apache-rat-core/src/main/java/org/apache/rat/license/LicenseSetFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to local variable "result".

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedjsTlzZN0sxhTQm&open=AZ6DedjsTlzZN0sxhTQm&pullRequest=655

Check failure on line 364 in apache-rat-core/src/main/java/org/apache/rat/config/exclusion/ExclusionProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "IXmlWriter" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6Dedh4TlzZN0sxhTQi&open=AZ6Dedh4TlzZN0sxhTQi&pullRequest=655

Check failure on line 368 in apache-rat-core/src/main/java/org/apache/rat/config/exclusion/ExclusionProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "IXmlWriter" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6Dedh4TlzZN0sxhTQh&open=AZ6Dedh4TlzZN0sxhTQh&pullRequest=655

Check warning on line 706 in apache-rat-core/src/main/java/org/apache/rat/document/DocumentName.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6YfYwvWY_hOOBLvJtk&open=AZ6YfYwvWY_hOOBLvJtk&pullRequest=655

Check warning on line 149 in apache-rat-core/src/test/java/org/apache/rat/ReporterTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to local variable "optionCollection".

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedsvTlzZN0sxhTRZ&open=AZ6DedsvTlzZN0sxhTRZ&pullRequest=655

Check warning on line 249 in apache-rat-core/src/test/java/org/apache/rat/ReporterOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to local variable "validator".

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedpCTlzZN0sxhTRA&open=AZ6DedpCTlzZN0sxhTRA&pullRequest=655

Check failure on line 360 in apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "IXmlWriter" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedboTlzZN0sxhTQS&open=AZ6DedboTlzZN0sxhTQS&pullRequest=655

Check warning on line 280 in apache-rat-core/src/main/java/org/apache/rat/Reporter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "statistic" which hides the field declared at line 240.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedhBTlzZN0sxhTQd&open=AZ6DedhBTlzZN0sxhTQd&pullRequest=655

Check warning on line 67 in apache-rat-core/src/test/java/org/apache/rat/ReporterOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.xml.sax.SAXException'.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedpCTlzZN0sxhTRU&open=AZ6DedpCTlzZN0sxhTRU&pullRequest=655

Check warning on line 1023 in apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the type specification in this constructor call with the diamond operator ("<>").

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedlzTlzZN0sxhTQs&open=AZ6DedlzTlzZN0sxhTQs&pullRequest=655

Check warning on line 681 in apache-rat-core/src/test/java/org/apache/rat/ReporterOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use isZero() instead.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedpCTlzZN0sxhTRK&open=AZ6DedpCTlzZN0sxhTRK&pullRequest=655

Check warning on line 799 in apache-rat-core/src/test/java/org/apache/rat/test/AbstractConfigurationOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an assertion predicate after calling this method.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DednGTlzZN0sxhTQ0&open=AZ6DednGTlzZN0sxhTQ0&pullRequest=655

Check warning on line 104 in apache-rat-core/src/test/java/org/apache/rat/document/DocumentNameBuilderTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6YfY6zWY_hOOBLvJto&open=AZ6YfY6zWY_hOOBLvJto&pullRequest=655

Check warning on line 608 in apache-rat-core/src/test/java/org/apache/rat/ReporterOptionsProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use isZero() instead.

See more on https://sonarcloud.io/project/issues?id=apache_creadur-rat&issues=AZ6DedpCTlzZN0sxhTRG&open=AZ6DedpCTlzZN0sxhTRG&pullRequest=655