PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 2

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-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-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-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-sharding-core - org/apache/shardingsphere/sharding/algorithm/sharding/classbased/ClassBasedShardingAlgorithmFactory.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7274

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. 95

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/preparer/inventory/splitter/InventoryDumperContextSplitter.java

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

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. 47

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. 157

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. 311

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-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 18143

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 1873

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 1871

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 1876

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 6364

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 1874

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 1874

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 18730

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 18225

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 18273

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 1897

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 18189

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 18140

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 1866

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 1866

Priority 4

shardingsphere-protocol-firebird - org/apache/shardingsphere/database/protocol/firebird/packet/command/query/statement/execute/protocol/util/FirebirdDateTimeUtils.java

Rule Violation Line
UselessParentheses Useless parentheses around `localDateTime.getNano() / NANOSECONDS_PER_FRACTION`. 64
UselessParentheses Useless parentheses around `146097 * c`. 107
UselessParentheses Useless parentheses around `1461 * ya`. 108

shardingsphere-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`. 46
UselessParentheses Useless parentheses around `time % 10000`. 50

shardingsphere-protocol-postgresql - org/apache/shardingsphere/database/protocol/postgresql/packet/command/query/extended/bind/protocol/util/PostgreSQLBinaryTimestampUtils.java

Rule Violation Line
UselessParentheses Useless parentheses around `TimeZone.getDefault().getRawOffset()`. 44

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/parameter/rewriter/EncryptAssignmentParameterRewriter.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 61

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/parameter/rewriter/EncryptInsertOnDuplicateKeyUpdateValueParameterRewriter.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 51

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/parameter/rewriter/EncryptInsertValueParameterRewriter.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 53

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/token/generator/assignment/EncryptInsertAssignmentTokenGenerator.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 47

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/token/generator/insert/EncryptInsertOnUpdateTokenGenerator.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 69

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/token/generator/insert/EncryptInsertValuesTokenGenerator.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 70

shardingsphere-sharding-core - org/apache/shardingsphere/sharding/rewrite/token/generator/impl/ShardingInsertValuesTokenGenerator.java

Rule Violation Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 51

shardingsphere-infra-rewrite-core - org/apache/shardingsphere/infra/rewrite/engine/RouteSQLRewriteEngine.java

Rule Violation Line
UselessParentheses Useless parentheses around `sqlRewriteContext.getSqlStatementContext()`. 119

shardingsphere-data-pipeline-cdc-core - org/apache/shardingsphere/data/pipeline/cdc/util/ColumnValueConvertUtils.java

Rule Violation Line
UselessParentheses Useless parentheses around `millis % 1000L`. 153

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(...`. 233

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`. 48

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-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-protocol-firebird - org/apache/shardingsphere/database/protocol/firebird/packet/command/query/statement/execute/protocol/util/FirebirdDateTimeUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `localDateTime.getNano() / NANOSECONDS_PER_FRACTION`. 4 64
UselessParentheses Useless parentheses around `146097 * c`. 4 107
UselessParentheses Useless parentheses around `1461 * ya`. 4 108

shardingsphere-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 46
UselessParentheses Useless parentheses around `time % 10000`. 4 50

shardingsphere-protocol-postgresql - org/apache/shardingsphere/database/protocol/postgresql/packet/command/query/extended/bind/protocol/util/PostgreSQLBinaryTimestampUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `TimeZone.getDefault().getRawOffset()`. 4 44

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/parameter/rewriter/EncryptAssignmentParameterRewriter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 61

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/parameter/rewriter/EncryptInsertOnDuplicateKeyUpdateValueParameterRewriter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 51

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/parameter/rewriter/EncryptInsertValueParameterRewriter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 53

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/token/generator/assignment/EncryptInsertAssignmentTokenGenerator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 47

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/token/generator/insert/EncryptInsertOnUpdateTokenGenerator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 69

shardingsphere-encrypt-core - org/apache/shardingsphere/encrypt/rewrite/token/generator/insert/EncryptInsertValuesTokenGenerator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 70

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7274

shardingsphere-sharding-core - org/apache/shardingsphere/sharding/rewrite/token/generator/impl/ShardingInsertValuesTokenGenerator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `((InsertStatementContext) sqlStatementContext)....`. 4 51

shardingsphere-infra-rewrite-core - org/apache/shardingsphere/infra/rewrite/engine/RouteSQLRewriteEngine.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `sqlRewriteContext.getSqlStatementContext()`. 4 119

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-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 95

shardingsphere-data-pipeline-core - org/apache/shardingsphere/data/pipeline/core/preparer/inventory/splitter/InventoryDumperContextSplitter.java

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

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 47

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 157

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 311

shardingsphere-data-pipeline-cdc-core - org/apache/shardingsphere/data/pipeline/cdc/util/ColumnValueConvertUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `millis % 1000L`. 4 153

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-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 233

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 48

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 18143

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 1873

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 1871

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 1876

shardingsphere-test-it-parser - org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 6364

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 1874

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 1874

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 18730

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 18225

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 18273

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 1897

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 18189

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 18140

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 1866

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 1866