PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 2

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/metadata/loader/PipelineTableMetaDataUtils.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 61

shardingsphere-sharding-core - org/apache/shardingsphere/sharding/route/engine/condition/generator/impl/ConditionValueInOperatorGenerator.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 66

shardingsphere-infra-spi - org/apache/shardingsphere/infra/spi/type/typed/TypedSPILoader.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 74

shardingsphere-mcp-core - org/apache/shardingsphere/mcp/core/tool/handler/execute/SQLStatementScanner.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 245

shardingsphere-cluster-mode-core - org/apache/shardingsphere/mode/manager/cluster/dispatch/listener/type/DatabaseMetaDataChangedListener.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 83

shardingsphere-parser-sql-statement-core - org/apache/shardingsphere/sql/parser/statement/core/util/MultiSQLSplitter.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 81

Priority 3

shardingsphere-agent-core - org/apache/shardingsphere/agent/core/plugin/config/yaml/swapper/YamlPluginsConfigurationSwapper.java

Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'swap(YamlPluginConfiguration)'. 64

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/consistencycheck/table/calculator/CRC32TableInventoryCheckCalculator.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 61

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/preparer/inventory/calculator/InventoryRecordsCountCalculator.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 96

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/preparer/inventory/calculator/position/estimated/InventoryPositionEstimatedCalculator.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 63

shardingsphere-data-pipeline-mysql - org/apache/shardingsphere/data/pipeline/mysql/ingest/incremental/binlog/position/MySQLIncrementalPositionManager.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 60

shardingsphere-data-pipeline-opengauss - org/apache/shardingsphere/data/pipeline/opengauss/ingest/incremental/dumper/OpenGaussIncrementalDumper.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 143

shardingsphere-data-pipeline-opengauss - org/apache/shardingsphere/data/pipeline/opengauss/ingest/incremental/wal/position/OpenGaussIncrementalPositionManager.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 56

shardingsphere-data-pipeline-postgresql - org/apache/shardingsphere/data/pipeline/postgresql/ingest/incremental/wal/position/PostgreSQLIncrementalPositionManager.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 58

shardingsphere-data-pipeline-cdc-core - org/apache/shardingsphere/data/pipeline/cdc/api/CDCJobAPI.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 371

shardingsphere-database-connector-opengauss - org/apache/shardingsphere/database/connector/opengauss/checker/OpenGaussDatabasePrivilegeChecker.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 54

shardingsphere-database-connector-postgresql - org/apache/shardingsphere/database/connector/postgresql/checker/PostgreSQLDatabasePrivilegeChecker.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 54

shardingsphere-database-protocol-firebird - org/apache/shardingsphere/database/protocol/firebird/packet/handshake/FirebirdSRPAuthenticationData.java

Rule Violation Line
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 51

shardingsphere-sharding-core - org/apache/shardingsphere/sharding/algorithm/sharding/classbased/ClassBasedShardingAlgorithmFactory.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 72–74

shardingsphere-infra-executor - org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/memory/QueryResultDataRowLoader.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 58

shardingsphere-global-clock-tso-provider-redis - org/apache/shardingsphere/globalclock/type/tso/provider/redis/RedisTSOPropertyKey.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 31

shardingsphere-database-time-service - org/apache/shardingsphere/timeservice/type/database/DatabaseTimestampService.java

Rule Violation Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 69

shardingsphere-mcp-bootstrap - org/apache/shardingsphere/mcp/bootstrap/config/yaml/swapper/YamlHttpTransportConfigurationSwapper.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address DEFAULT_BIND_HOST 34

shardingsphere-mcp-bootstrap - org/apache/shardingsphere/mcp/bootstrap/transport/HttpTransportHostUtils.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 40
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 40

shardingsphere-cluster-mode-core - org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/database/datasource/StorageNodeChangedHandler.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'databaseName'. 60
UnusedFormalParameter Avoid unused method parameters such as 'storageNodeName'. 60
UnusedFormalParameter Avoid unused method parameters such as 'databaseName'. 64
UnusedFormalParameter Avoid unused method parameters such as 'storageNodeName'. 64
UnusedFormalParameter Avoid unused method parameters such as 'databaseName'. 68
UnusedFormalParameter Avoid unused method parameters such as 'storageNodeName'. 68

shardingsphere-proxy-bootstrap - org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address DEFAULT_BIND_ADDRESS 39

shardingsphere-test-infra-fixture-database - org/apache/shardingsphere/test/infra/fixture/jdbc/MockedDataSource.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–143

shardingsphere-test-it-distsql - org/apache/shardingsphere/test/it/distsql/handler/engine/query/DistSQLDatabaseRuleQueryExecutorAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–76

shardingsphere-test-it-distsql - org/apache/shardingsphere/test/it/distsql/handler/engine/query/DistSQLGlobalRuleQueryExecutorAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–71

shardingsphere-test-it-distsql - org/apache/shardingsphere/test/it/distsql/handler/engine/update/DistSQLGlobalRuleDefinitionExecutorAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–77

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/distsql/KeyGenerateStrategyAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–62

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/distsql/rdl/EncryptRuleAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–74

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/distsql/rdl/MaskRuleAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–74

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/error/ErrorLoggingClauseAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–81

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/expression/ExpressionAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–815

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/outfile/OutfileClauseAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–82

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/projection/ProjectionAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–254

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/table/TableAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–384

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/window/WindowClauseAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–114

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/with/WithClauseAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–126

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/dialect/doris/DorisCreateFunctionStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–152

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/dialect/postgresql/PostgreSQLDDLStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–272

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/AlterTableStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–732

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/BuildIndexStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–92

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CancelAlterTableStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–81

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CancelBuildIndexStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–74

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CreateIndexStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–136

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CreateViewStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–99

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dml/dialect/mysql/type/MySQLLoadDataStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–182

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dml/standard/type/MergeStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–209

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dml/standard/type/UpdateStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–145

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/rql/type/ShowStorageUnitsStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–66

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/rql/type/ShowTablesStatementAssert.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18–66

Priority 4

shardingsphere-database-protocol-mysql - org/apache/shardingsphere/database/protocol/mysql/packet/binlog/row/column/value/time/MySQLDatetimeBinlogProtocolValue.java

Rule Violation Line
UselessParentheses Useless parentheses around `date % 10000`. 45
UselessParentheses Useless parentheses around `time % 10000`. 49

shardingsphere-infra-executor - org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/raw/metadata/RawResultSetMetaData.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ResultSetMetaData': 'columnNoNulls' is already in scope because it is inherited by an enclosing type 70
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ResultSetMetaData': 'columnNullable' is already in scope because it is inherited by an enclosing type 70

shardingsphere-sql-federation-compiler - org/apache/shardingsphere/sqlfederation/compiler/sql/function/opengauss/impl/OpenGaussSystemFunction.java

Rule Violation Line
UselessParentheses Useless parentheses around `"-" + ShardingSphereVersion.BUILD_COMMIT_ID_ABBREV`. 41

shardingsphere-parser-distsql-engine - org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementParserEngine.java

Rule Violation Line
UselessParentheses Useless parentheses around `new KernelDistSQLStatementVisitor()`. 47

shardingsphere-parser-distsql-engine - org/apache/shardingsphere/distsql/parser/core/utility/UtilityDistSQLStatementParserEngine.java

Rule Violation Line
UselessParentheses Useless parentheses around `new UtilityDistSQLStatementVisitor()`. 56

shardingsphere-parser-sql-engine-clickhouse - org/apache/shardingsphere/sql/parser/engine/clickhouse/visitor/statement/ClickHouseStatementVisitor.java

Rule Violation Line
UselessParentheses Useless parentheses around `rightText + ctx.start.getInputStream().getText(...`. 239

shardingsphere-proxy-backend-opengauss - org/apache/shardingsphere/proxy/backend/opengauss/handler/admin/executor/OpenGaussSelectVersionExecutor.java

Rule Violation Line
UselessParentheses Useless parentheses around `"-" + ShardingSphereVersion.BUILD_COMMIT_ID_ABBREV`. 47

Files

shardingsphere-agent-core - org/apache/shardingsphere/agent/core/plugin/config/yaml/swapper/YamlPluginsConfigurationSwapper.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'swap(YamlPluginConfiguration)'. 3 64

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/consistencycheck/table/calculator/CRC32TableInventoryCheckCalculator.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 61

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/metadata/loader/PipelineTableMetaDataUtils.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 61

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/preparer/inventory/calculator/InventoryRecordsCountCalculator.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 96

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/preparer/inventory/calculator/position/estimated/InventoryPositionEstimatedCalculator.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 63

shardingsphere-data-pipeline-mysql - org/apache/shardingsphere/data/pipeline/mysql/ingest/incremental/binlog/position/MySQLIncrementalPositionManager.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 60

shardingsphere-data-pipeline-opengauss - org/apache/shardingsphere/data/pipeline/opengauss/ingest/incremental/dumper/OpenGaussIncrementalDumper.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 143

shardingsphere-data-pipeline-opengauss - org/apache/shardingsphere/data/pipeline/opengauss/ingest/incremental/wal/position/OpenGaussIncrementalPositionManager.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 56

shardingsphere-data-pipeline-postgresql - org/apache/shardingsphere/data/pipeline/postgresql/ingest/incremental/wal/position/PostgreSQLIncrementalPositionManager.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 58

shardingsphere-data-pipeline-cdc-core - org/apache/shardingsphere/data/pipeline/cdc/api/CDCJobAPI.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 371

shardingsphere-database-connector-opengauss - org/apache/shardingsphere/database/connector/opengauss/checker/OpenGaussDatabasePrivilegeChecker.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 54

shardingsphere-database-connector-postgresql - org/apache/shardingsphere/database/connector/postgresql/checker/PostgreSQLDatabasePrivilegeChecker.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 54

shardingsphere-database-protocol-firebird - org/apache/shardingsphere/database/protocol/firebird/packet/handshake/FirebirdSRPAuthenticationData.java

Rule Violation Priority Line
BigIntegerInstantiation Don't create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 3 51

shardingsphere-database-protocol-mysql - org/apache/shardingsphere/database/protocol/mysql/packet/binlog/row/column/value/time/MySQLDatetimeBinlogProtocolValue.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `date % 10000`. 4 45
UselessParentheses Useless parentheses around `time % 10000`. 4 49

shardingsphere-sharding-core - org/apache/shardingsphere/sharding/algorithm/sharding/classbased/ClassBasedShardingAlgorithmFactory.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 72–74

shardingsphere-sharding-core - org/apache/shardingsphere/sharding/route/engine/condition/generator/impl/ConditionValueInOperatorGenerator.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 66

shardingsphere-infra-executor - org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/memory/QueryResultDataRowLoader.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 58

shardingsphere-infra-executor - org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/raw/metadata/RawResultSetMetaData.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ResultSetMetaData': 'columnNoNulls' is already in scope because it is inherited by an enclosing type 4 70
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ResultSetMetaData': 'columnNullable' is already in scope because it is inherited by an enclosing type 4 70

shardingsphere-infra-spi - org/apache/shardingsphere/infra/spi/type/typed/TypedSPILoader.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 74

shardingsphere-global-clock-tso-provider-redis - org/apache/shardingsphere/globalclock/type/tso/provider/redis/RedisTSOPropertyKey.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 3 31

shardingsphere-sql-federation-compiler - org/apache/shardingsphere/sqlfederation/compiler/sql/function/opengauss/impl/OpenGaussSystemFunction.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `"-" + ShardingSphereVersion.BUILD_COMMIT_ID_ABBREV`. 4 41

shardingsphere-database-time-service - org/apache/shardingsphere/timeservice/type/database/DatabaseTimestampService.java

Rule Violation Priority Line
CheckResultSet Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 3 69

shardingsphere-mcp-bootstrap - org/apache/shardingsphere/mcp/bootstrap/config/yaml/swapper/YamlHttpTransportConfigurationSwapper.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address DEFAULT_BIND_HOST 3 34

shardingsphere-mcp-bootstrap - org/apache/shardingsphere/mcp/bootstrap/transport/HttpTransportHostUtils.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 3 40
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 3 40

shardingsphere-mcp-core - org/apache/shardingsphere/mcp/core/tool/handler/execute/SQLStatementScanner.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 245

shardingsphere-cluster-mode-core - org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/database/datasource/StorageNodeChangedHandler.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'databaseName'. 3 60
UnusedFormalParameter Avoid unused method parameters such as 'storageNodeName'. 3 60
UnusedFormalParameter Avoid unused method parameters such as 'databaseName'. 3 64
UnusedFormalParameter Avoid unused method parameters such as 'storageNodeName'. 3 64
UnusedFormalParameter Avoid unused method parameters such as 'databaseName'. 3 68
UnusedFormalParameter Avoid unused method parameters such as 'storageNodeName'. 3 68

shardingsphere-cluster-mode-core - org/apache/shardingsphere/mode/manager/cluster/dispatch/listener/type/DatabaseMetaDataChangedListener.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 83

shardingsphere-parser-distsql-engine - org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementParserEngine.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `new KernelDistSQLStatementVisitor()`. 4 47

shardingsphere-parser-distsql-engine - org/apache/shardingsphere/distsql/parser/core/utility/UtilityDistSQLStatementParserEngine.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `new UtilityDistSQLStatementVisitor()`. 4 56

shardingsphere-parser-sql-engine-clickhouse - org/apache/shardingsphere/sql/parser/engine/clickhouse/visitor/statement/ClickHouseStatementVisitor.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `rightText + ctx.start.getInputStream().getText(...`. 4 239

shardingsphere-parser-sql-statement-core - org/apache/shardingsphere/sql/parser/statement/core/util/MultiSQLSplitter.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 81

shardingsphere-proxy-backend-opengauss - org/apache/shardingsphere/proxy/backend/opengauss/handler/admin/executor/OpenGaussSelectVersionExecutor.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `"-" + ShardingSphereVersion.BUILD_COMMIT_ID_ABBREV`. 4 47

shardingsphere-proxy-bootstrap - org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address DEFAULT_BIND_ADDRESS 3 39

shardingsphere-test-infra-fixture-database - org/apache/shardingsphere/test/infra/fixture/jdbc/MockedDataSource.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–143

shardingsphere-test-it-distsql - org/apache/shardingsphere/test/it/distsql/handler/engine/query/DistSQLDatabaseRuleQueryExecutorAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–76

shardingsphere-test-it-distsql - org/apache/shardingsphere/test/it/distsql/handler/engine/query/DistSQLGlobalRuleQueryExecutorAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–71

shardingsphere-test-it-distsql - org/apache/shardingsphere/test/it/distsql/handler/engine/update/DistSQLGlobalRuleDefinitionExecutorAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–77

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/distsql/KeyGenerateStrategyAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–62

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/distsql/rdl/EncryptRuleAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–74

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/distsql/rdl/MaskRuleAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–74

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/error/ErrorLoggingClauseAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–81

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/expression/ExpressionAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–815

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/outfile/OutfileClauseAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–82

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/projection/ProjectionAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–254

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/table/TableAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–384

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/window/WindowClauseAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–114

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/segment/with/WithClauseAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–126

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/dialect/doris/DorisCreateFunctionStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–152

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/dialect/postgresql/PostgreSQLDDLStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–272

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/AlterTableStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–732

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/BuildIndexStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–92

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CancelAlterTableStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–81

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CancelBuildIndexStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–74

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CreateIndexStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–136

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/ddl/standard/type/CreateViewStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–99

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dml/dialect/mysql/type/MySQLLoadDataStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–182

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dml/standard/type/MergeStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–209

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/dml/standard/type/UpdateStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–145

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/rql/type/ShowStorageUnitsStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–66

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/internal/asserts/statement/rql/type/ShowTablesStatementAssert.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18–66