hi, there
I try to genenrate the pmd report and upload to sonarcloud, followings are some of the pmd report for Java :
<file name="/opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ral/impl/QueryableRALStatementAssert.java">
<violation beginline="66" endline="100" begincolumn="19" endcolumn="5" rule="CognitiveComplexity" ruleset="Design" package="org.apache.shardingsphere.test.it.sql.parser.internal.asserts.statement.ral.impl" class="QueryableRALStatementAssert" method="assertIs" externalInfoUrl="https://pmd.github.io/pmd-6.53.0/pmd_rules_java_design.html#cognitivecomplexity" priority="3">
The method 'assertIs(SQLCaseAssertContext, QueryableRALStatement, SQLParserTestCase)' has a cognitive complexity of 16, current threshold is 15
</violation>
</file>
<file name="/opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/tcl/impl/LockStatementAssert.java">
<violation beginline="46" endline="72" begincolumn="19" endcolumn="5" rule="CognitiveComplexity" ruleset="Design" package="org.apache.shardingsphere.test.it.sql.parser.internal.asserts.statement.tcl.impl" class="LockStatementAssert" method="assertIs" externalInfoUrl="https://pmd.github.io/pmd-6.53.0/pmd_rules_java_design.html#cognitivecomplexity" priority="3">
The method 'assertIs(SQLCaseAssertContext, LockStatement, LockStatementTestCase)' has a cognitive complexity of 16, current threshold is 15
</violation>
</file>
when I try to upload by mvnw sonar:sonar
I got following warnings, and after I check , these files DO Exists.
...
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/InternalSQLParserIT.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/InternalUnsupportedSQLParserIT.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/expression/ExpressionAssert.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dal/DALStatementAssert.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dcl/DCLStatementAssert.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/DDLStatementAssert.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ral/impl/QueryableRALStatementAssert.java. No PMD issue will be imported on this file.
[WARNING] No input file found for /opt/investigation/pmd/shardingsphere-pmd-sonarcloud/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/tcl/impl/LockStatementAssert.java. No PMD issue will be imported on this file.
I try to set the abusolute path for sonar.java.pmd.reportPaths, and that does not work.