Skip to content

updated Arg documentation

5780186
Select commit
Loading
Failed to load commit list.
Draft

RAT-540: Create UI option collections #637

updated Arg documentation
5780186
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 27, 2026 in 38s

Quality Gate failed

Failed conditions
70.3% Coverage on New Code (required ≥ 80%)
6.2% Duplication on New Code (required ≤ 3%)
C Reliability 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 warning on line 185 in apache-rat-core/src/main/java/org/apache/rat/OptionCollection.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Call "Optional#isPresent()" or "!Optional#isEmpty()" before accessing the value.

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

Check warning on line 83 in apache-rat-tools/src/main/java/org/apache/rat/documentation/options/MavenOptionCollection.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "pluralEndings" local variable.

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

Check warning on line 136 in apache-rat-tools/src/main/java/org/apache/rat/documentation/options/AntOptionCollection.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=AZ3Pm1nBsMHhD5zog6D_&open=AZ3Pm1nBsMHhD5zog6D_&pullRequest=637

Check warning on line 109 in apache-rat-core/src/main/java/org/apache/rat/ui/ArgumentTracker.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

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

Check warning on line 48 in apache-rat-core/src/main/java/org/apache/rat/analysis/matchers/SimpleTextMatcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Don't override a deprecated method or explicitly mark it as "@Deprecated".

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

Check failure on line 89 in apache-rat-core/src/main/java/org/apache/rat/commandline/Arg.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "'%s' should not be executed directly" 7 times.

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

Check warning on line 636 in apache-rat-core/src/main/java/org/apache/rat/commandline/Arg.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of System.out by a logger.

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

Check warning on line 90 in apache-rat-core/src/test/java/org/apache/rat/ui/UIOptionCollectionTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "findDeprecatedArgOption" method.

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

Check warning on line 54 in apache-rat-plugin/src/test/java/org/apache/rat/mp/OptionMojoTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.fail'.

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

Check warning on line 49 in apache-rat-tasks/src/test/java/org/apache/rat/anttasks/HelpTest.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=AZ3Pm1pPsMHhD5zog6EP&open=AZ3Pm1pPsMHhD5zog6EP&pullRequest=637

Check warning on line 96 in apache-rat-core/src/test/java/org/apache/rat/ui/UIOptionCollectionTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "findDeprecatedOption" method.

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

Check warning on line 66 in apache-rat-tools/src/main/java/org/apache/rat/tools/AntGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "generateType" local variable.

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

Check warning on line 38 in apache-rat-tasks/src/test/java/org/apache/rat/anttasks/GeneratedReportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.apache.rat.commandline.Arg'.

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

Check warning on line 26 in apache-rat-core/src/test/java/org/apache/rat/ui/UIOptionCollectionTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.function.Predicate'.

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

Check warning on line 87 in apache-rat-core/src/test/java/org/apache/rat/ui/ArgumentTrackerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this lambda with method reference 'Option::hasArgs'.

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

Check warning on line 88 in apache-rat-tools/src/main/java/org/apache/rat/documentation/options/MavenOptionCollection.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=AZ3Pm1mvsMHhD5zog6D5&open=AZ3Pm1mvsMHhD5zog6D5&pullRequest=637

Check warning on line 42 in apache-rat-core/src/main/java/org/apache/rat/ui/UIOption.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this repetition that can lead to a stack overflow for large inputs.

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

Check warning on line 214 in apache-rat-core/src/main/java/org/apache/rat/ui/ArgumentTracker.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

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

Check warning on line 63 in apache-rat-tools/src/main/java/org/apache/rat/documentation/options/MavenOption.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this instance-reference to a static reference.

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

Check warning on line 30 in apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Help.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.apache.commons.collections4.list.TreeList'.

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

Check failure on line 280 in apache-rat-tools/src/main/java/org/apache/rat/tools/AntGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

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

Check warning on line 306 in apache-rat-tasks/src/test/java/org/apache/rat/anttasks/GeneratedReportTest.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=AZ3Pm1o5sMHhD5zog6EJ&open=AZ3Pm1o5sMHhD5zog6EJ&pullRequest=637

Check warning on line 822 in apache-rat-core/src/main/java/org/apache/rat/commandline/Arg.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested try block into a separate method.

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

Check warning on line 183 in apache-rat-core/src/main/java/org/apache/rat/OptionCollection.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Call "Optional#isPresent()" or "!Optional#isEmpty()" before accessing the value.

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

Check warning on line 35 in apache-rat-tasks/src/test/java/org/apache/rat/anttasks/GeneratedReportTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.apache.commons.lang3.StringUtils'.

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