Checkstyle Results
The following document contains the results of Checkstyle 14.1.0 with /home/runner/work/shardingsphere-doc/shardingsphere-doc/shardingsphere/src/resources/checkstyle.xml ruleset.
Summary
| Files | |||
|---|---|---|---|
| 146 | 0 | 39 | 0 |
Files
Rules
| Category | Rule | Violations | Severity |
|---|---|---|---|
| metrics | ClassDataAbstractionCoupling
|
8 | |
| ClassFanOutComplexity | 19 | ||
| CyclomaticComplexity | 2 | ||
| NPathComplexity | 2 | ||
| sizes | MethodCount | 8 |
Details
org/apache/shardingsphere/driver/executor/engine/DriverExecuteExecutor.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 26 (max allowed is 20). | 55 |
org/apache/shardingsphere/driver/executor/engine/batch/preparedstatement/BatchPreparedStatementExecutorTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 13 (max allowed is 10) classes [BatchExecutionUnit, BatchPreparedStatementExecutor, ExecutionGroup, ExecutionGroupContext, ExecutionGroupReportContext, ExecutionUnit, JDBCExecutionUnit, JDBCExecutor, RuleAttributes, RuleMetaData, SQLException, SQLUnit, UUID]. | 68 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 26 (max allowed is 20). | 68 |
org/apache/shardingsphere/driver/executor/engine/batch/preparedstatement/DriverExecuteBatchExecutor.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 21 (max allowed is 20). | 53 |
org/apache/shardingsphere/driver/executor/engine/facade/DriverExecutorFacade.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 23 (max allowed is 20). | 54 |
org/apache/shardingsphere/driver/executor/engine/pushdown/jdbc/DriverJDBCPushDownExecuteExecutor.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 32 (max allowed is 20). | 67 |
org/apache/shardingsphere/driver/executor/engine/pushdown/jdbc/DriverJDBCPushDownExecuteQueryExecutor.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 23 (max allowed is 20). | 56 |
org/apache/shardingsphere/driver/executor/engine/pushdown/jdbc/DriverJDBCPushDownExecuteUpdateExecutor.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 26 (max allowed is 20). | 61 |
org/apache/shardingsphere/driver/jdbc/adapter/AdaptedDatabaseMetaData.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | MethodCount | Number of public methods is 147 (max allowed is 100). | 29 | |
| sizes | MethodCount | Total number of methods is 147 (max allowed is 100). | 29 |
org/apache/shardingsphere/driver/jdbc/adapter/PreparedStatementAdapterTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 13 (max allowed is 10) classes [ByteArrayInputStream, ConfigurationProperties, Date, DefaultSQLFederationRuleConfigurationBuilder, DefaultSQLParserRuleConfigurationBuilder, Properties, RuleMetaData, SQLFederationRule, SQLParserRule, ShardingSpherePreparedStatement, StringReader, Time, Timestamp]. | 59 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 23 (max allowed is 20). | 59 |
org/apache/shardingsphere/driver/jdbc/adapter/StatementAdapterTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 11 (max allowed is 10) classes [CommitStatement, ConfigurationProperties, DefaultSQLFederationRuleConfigurationBuilder, DefaultSQLParserRuleConfigurationBuilder, Properties, RollbackStatement, RuleMetaData, SQLFederationRule, SQLParserRule, SQLStatement, ShardingSphereStatement]. | 65 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 22 (max allowed is 20). | 65 |
org/apache/shardingsphere/driver/jdbc/core/connection/ShardingSphereConnection.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 11 (max allowed is 10) classes [ConcurrentLinkedQueue, ConnectionClosedException, DatabaseTypeRegistry, DriverDatabaseConnectionManager, ForceExecuteTemplate, ProcessEngine, SQLException, SQLFeatureNotSupportedException, ShardingSphereDatabaseMetaData, ShardingSpherePreparedStatement, ShardingSphereStatement]. | 53 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 24 (max allowed is 20). | 53 |
org/apache/shardingsphere/driver/jdbc/core/connection/ShardingSphereConnectionTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 21 (max allowed is 20). | 64 |
org/apache/shardingsphere/driver/jdbc/core/datasource/metadata/ShardingSphereDatabaseMetaDataTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 22 (max allowed is 20). | 64 | |
| sizes | MethodCount | Number of package methods is 182 (max allowed is 100). | 64 | |
| sizes | MethodCount | Total number of methods is 184 (max allowed is 100). | 64 |
org/apache/shardingsphere/driver/jdbc/core/resultset/DistSQLResultSet.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | NPathComplexity | NPath Complexity is 387 (max allowed is 200). | 98 |
org/apache/shardingsphere/driver/jdbc/core/resultset/MySQLResultSetValueConverter.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | CyclomaticComplexity | Cyclomatic Complexity is 26 (max allowed is 10). | 39 | |
| metrics | CyclomaticComplexity | Cyclomatic Complexity is 14 (max allowed is 10). | 91 | |
| metrics | NPathComplexity | NPath Complexity is 300 (max allowed is 200). | 91 |
org/apache/shardingsphere/driver/jdbc/core/resultset/ShardingSphereResultSet.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 25 (max allowed is 20). | 59 |
org/apache/shardingsphere/driver/jdbc/core/resultset/ShardingSphereResultSetTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 35 (max allowed is 20). | 70 |
org/apache/shardingsphere/driver/jdbc/core/statement/DistSQLStatementExecutorTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 26 (max allowed is 20). | 71 |
org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 13 (max allowed is 10) classes [CommonSQLStatementContext, DatabaseTypeRegistry, DistSQLStatementExecutor, DriverExecuteBatchExecutor, DriverExecutorFacade, EmptySQLException, GeneratedKeysResultSet, QueryContext, SQLBindEngine, ShardingSphereParameterMetaData, StatementManager, StatementOption, UnknownDatabaseException]. | 74 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 34 (max allowed is 20). | 74 |
org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatementTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 16 (max allowed is 10) classes [AtomicReference, CommitStatement, ConfigurationProperties, DefaultSQLFederationRuleConfigurationBuilder, DefaultSQLParserRuleConfigurationBuilder, GeneratedKeysResultSet, ParseStatement, Properties, RollbackStatement, RuleMetaData, SQLException, SQLFederationRule, SQLParserRule, SQLStatement, ShardingSpherePreparedStatement, UnknownDatabaseException]. | 87 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 34 (max allowed is 20). | 87 |
org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSphereStatement.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 13 (max allowed is 10) classes [BatchStatementExecutor, CommonSQLStatementContext, DatabaseTypeRegistry, DistSQLStatementExecutor, DriverExecutorFacade, EmptySQLException, GeneratedKeysResultSet, QueryContext, SQLBindEngine, StatementManager, StatementOption, UnknownDatabaseException, UnknownSQLException]. | 71 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 35 (max allowed is 20). | 71 |
org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSphereStatementTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| metrics | ClassDataAbstractionCoupling | Class Data Abstraction Coupling is 13 (max allowed is 10) classes [ConfigurationProperties, DatabaseProtocolException, DefaultSQLFederationRuleConfigurationBuilder, DefaultSQLParserRuleConfigurationBuilder, NoDatabaseSelectedException, ParseStatement, Properties, RuleMetaData, SQLException, SQLFederationRule, SQLParserRule, ShardingSphereStatement, UnknownDatabaseException]. | 81 | |
| metrics | ClassFanOutComplexity | Class Fan-Out Complexity is 29 (max allowed is 20). | 81 |
org/apache/shardingsphere/driver/state/circuit/metadata/CircuitBreakerDatabaseMetaData.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | MethodCount | Number of public methods is 176 (max allowed is 100). | 28 | |
| sizes | MethodCount | Total number of methods is 176 (max allowed is 100). | 28 |
org/apache/shardingsphere/driver/state/circuit/metadata/CircuitBreakerDatabaseMetaDataTest.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | MethodCount | Number of package methods is 176 (max allowed is 100). | 29 | |
| sizes | MethodCount | Total number of methods is 176 (max allowed is 100). | 29 |
