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  Info  Warnings  Errors
82 0 15 0

Files

File  I  W  E
org/apache/shardingsphere/mcp/bootstrap/config/yaml/validator/HttpTransportConfigurationValidator.java 0 1 0
org/apache/shardingsphere/mcp/bootstrap/transport/HttpTransportOriginUtils.java 0 1 0
org/apache/shardingsphere/mcp/bootstrap/transport/capability/completion/MCPCompletionSpecificationFactoryTest.java 0 2 0
org/apache/shardingsphere/mcp/bootstrap/transport/capability/resource/MCPResourceSpecificationFactoryTest.java 0 1 0
org/apache/shardingsphere/mcp/bootstrap/transport/capability/tool/AbstractMCPToolSpecificationFactoryTest.java 0 2 0
org/apache/shardingsphere/mcp/bootstrap/transport/capability/tool/MCPCallToolResultFactoryTest.java 0 2 0
org/apache/shardingsphere/mcp/bootstrap/transport/capability/tool/MCPToolElicitationHandler.java 0 1 0
org/apache/shardingsphere/mcp/bootstrap/transport/server/MCPSyncServerFactoryTest.java 0 2 0
org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServlet.java 0 1 0
org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServletTest.java 0 2 0

Rules

Category Rule Violations Severity
metrics BooleanExpressionComplexity 3  Warning
ClassDataAbstractionCoupling
  • max: "10"
5  Warning
ClassFanOutComplexity 7  Warning

Details

org/apache/shardingsphere/mcp/bootstrap/config/yaml/validator/HttpTransportConfigurationValidator.java

Severity Category Rule Message Line
 Warning metrics BooleanExpressionComplexity Boolean expression complexity is 6 (max allowed is 3). 120

org/apache/shardingsphere/mcp/bootstrap/transport/HttpTransportOriginUtils.java

Severity Category Rule Message Line
 Warning metrics BooleanExpressionComplexity Boolean expression complexity is 5 (max allowed is 3). 49

org/apache/shardingsphere/mcp/bootstrap/transport/capability/completion/MCPCompletionSpecificationFactoryTest.java

Severity Category Rule Message Line
 Warning metrics ClassDataAbstractionCoupling Class Data Abstraction Coupling is 13 (max allowed is 10) classes [DatabaseIdentifierContext, InMemoryWorkflowSessionStore, MCPCompletionResult, MCPCompletionSpecificationFactory, MCPSessionIdentity, MCPSessionManager, McpSchema.CompleteRequest, McpSchema.CompleteRequest.CompleteArgument, McpSchema.CompleteRequest.CompleteContext, McpSchema.PromptReference, McpSchema.ResourceReference, RuntimeDatabaseProfile, WorkflowContextSnapshot]. 59
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 24 (max allowed is 20). 59

org/apache/shardingsphere/mcp/bootstrap/transport/capability/resource/MCPResourceSpecificationFactoryTest.java

Severity Category Rule Message Line
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 23 (max allowed is 20). 71

org/apache/shardingsphere/mcp/bootstrap/transport/capability/tool/AbstractMCPToolSpecificationFactoryTest.java

Severity Category Rule Message Line
 Warning metrics ClassDataAbstractionCoupling Class Data Abstraction Coupling is 12 (max allowed is 10) classes [CallToolRequest, JsonTypeReference, MCPRuntimeContext, MCPSessionIdentity, MCPSessionManager, MCPToolDefinition, MCPToolDescriptor, MCPToolSpecificationFactory, McpSchema.ClientCapabilities, McpSchema.ClientCapabilities.Elicitation, McpSchema.ClientCapabilities.Elicitation.Form, McpSchema.ClientCapabilities.Elicitation.Url]. 64
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 21 (max allowed is 20). 64

org/apache/shardingsphere/mcp/bootstrap/transport/capability/tool/MCPCallToolResultFactoryTest.java

Severity Category Rule Message Line
 Warning metrics ClassDataAbstractionCoupling Class Data Abstraction Coupling is 13 (max allowed is 10) classes [AlgorithmPropertyRequirement, CallToolRequest, ClarifiedIntent, DefaultJsonSchemaValidator, EncryptWorkflowRequest, InteractionPlan, MCPCallToolResultFactory, MCPErrorPayload, MCPMapPayload, RuleArtifact, SQLExecutionColumnDefinition, WorkflowContextSnapshot, WorkflowRequest]. 87
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 32 (max allowed is 20). 87

org/apache/shardingsphere/mcp/bootstrap/transport/capability/tool/MCPToolElicitationHandler.java

Severity Category Rule Message Line
 Warning metrics BooleanExpressionComplexity Boolean expression complexity is 5 (max allowed is 3). 136

org/apache/shardingsphere/mcp/bootstrap/transport/server/MCPSyncServerFactoryTest.java

Severity Category Rule Message Line
 Warning metrics ClassDataAbstractionCoupling Class Data Abstraction Coupling is 16 (max allowed is 10) classes [MCPSyncServerFactory, McpSchema.CompleteResult, McpSchema.CompleteResult.CompleteCompletion, McpSchema.GetPromptResult, McpSchema.JsonSchema, McpSchema.Prompt, McpSchema.PromptReference, McpSchema.ReadResourceResult, McpSchema.TextResourceContents, SyncCompletionSpecification, SyncPromptSpecification, SyncResourceSpecification, SyncResourceTemplateSpecification, SyncToolSpecification, TestServerTransportProvider, TestStreamableTransportProvider]. 58
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 25 (max allowed is 20). 58

org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServlet.java

Severity Category Rule Message Line
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 29 (max allowed is 20). 61

org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServletTest.java

Severity Category Rule Message Line
 Warning metrics ClassDataAbstractionCoupling Class Data Abstraction Coupling is 16 (max allowed is 10) classes [CountDownLatch, HttpTransportConfiguration, IOException, InitializeResult, MCPSessionIdentity, MCPSessionManager, MCPTransportSecurityException, McpSchema.ClientCapabilities, McpSchema.Implementation, McpSchema.InitializeRequest, McpStreamableServerSession.McpStreamableServerSessionInit, PrintWriter, ServletException, SessionAttributionSourceConfiguration, StreamableHttpMCPServlet, StringWriter]. 87
 Warning metrics ClassFanOutComplexity Class Fan-Out Complexity is 36 (max allowed is 20). 87