
                                  Analyzed  2524 modules, 12018 functions ±0                                            
                              Total lines:  401,991 ±0                                                                  
                          Total functions:  12018 ±0                                                                    
  Comparing against baseline: commit 555eb3f

Statistics (Δ vs baseline)
    Metric                            Average                Median                       P95                    P99    
    Cognitive                         6.20 ±0               2.00 ±0            23.00 (>15) ±0         67.00 (>15) ±0    
    complexity                                                                                                          
    NPath complexity              ∞ (>200) ±0               4.00 ±0        1,536.00 (>200) ±0            ∞ (>200) ±0    
    Data Transformation               9.00 ±0               1.00 ±0            35.00 (>15) ±0        125.00 (>15) ±0    
    Density (DTD)                                                                                                       
    Cyclomatic                        5.40 ±0               3.00 ±0                  16.00 ±0         37.00 (>20) ±0    
    complexity                                                                                                          
    Maintainability                  55.60 ±0              56.28 ±0             30.73 ↓-46.23          14.89 ↓-72.38    
    Index (MI)                                                                                                          
    Logic Density Index        35.40 (>30) ±0        30.70 (>30) ±0            66.78 (>30) ±0        100.00 (>30) ±0    
    (LDI)                                                                                                               
                                                                                                                        
    Lines per module →              159.30 ±0              92.50 ±0                 540.85 ±0              836.31 ±0    
    LOC                                                                                                                 
    Lines per module →               70.60 ±0              42.00 ±0                 232.85 ±0              376.08 ±0    
    LLOC                                                                                                                
    Lines per module →              153.90 ±0              89.00 ±0                 522.00 ±0              813.39 ±0    
    SLOC                                                                                                                


Circular import cycles:
 Runtime cycles: 605 ↑+605                           
   Avg: 28.10, Median: 30.00, P95: 42.00, P99: 44.00 
 Cycles with type imports: 20 ↑+20                   
   Avg: 3.20, Median: 3.00, P95: 4.00, P99: 4.00     
Use --show-circulars to see cycle details

Pattern violations
 Type                            Count 
 Total violations         7195 ↑+1,321 
 Any Type                        83 ±0 
 As Assertion                  4410 ±0 
 Double Casting              381 ↑+381 
 Enum Declaration                 2 ±0 
 Missing Readonly              1302 ±0 
 Nested Import                    5 ±0 
 Non Arrow Method            403 ↑+403 
 Non Null Assertion              65 ±0 
 Over Optional Interface       19 ↑+19 
 Private Keyword             518 ↑+518 
 Repeated Calls                   7 ±0 
Use --show-bad-patterns to see the full list

Code duplication
 Type 1 (exact clones): 184 cluster(s) ↑+184    
 Type 2 (parametric clones): 76 cluster(s) ↑+76 
                                                
   Type 1 lines: 2576/401991 (0.6%) ↑+0.64      
   Type 1 functions: 429/12018 (3.6%) ↑+3.57    
                                                
   Type 2 lines: 2070/401991 (0.5%) ↑+0.51      
   Type 2 functions: 216/12018 (1.8%) ↑+1.80    
Use --show-dupes to see the full list

Dead code violations
 Total violations: 0 ±0 
Use --show-dead to see the full list

Fatness metrics
 Fat files: 171 ±0                         
 Fat functions: 1499 ±0                    
 Wide functions (>5 params): 32 ±0         
 Save the world functions (>7 calls): 1 ±0 
Use --show-fatties to see the full list
Top 10 Refactor Candidates:
 Violation                                           Location - Function Name                                           
 complexity: 452 (> 15), npath: ∞ (> 200), dtd: 560  ../../openclaw/src/agents/bash-tools.exec.ts:121 - createExecTool  
 (> 15)                                                                                                                 
 npath: ∞ (> 200), dtd: 569 (> 15), mi: 2.00 (< 10)  ../../openclaw/src/commands/status.command.ts:44 - statusCommand   
 npath: ∞ (> 200), cyclomatic: 149 (> 20), ldi:      ../../openclaw/extensions/bluebubbles/src/monitor-processing.ts:11 
 100.00 (> 30)                                       0 - processMessage                                                 
 complexity: 268 (> 15), npath: ∞ (> 200), mi: 2.64  ../../openclaw/src/telegram/bot-handlers.ts:45 -                   
 (< 10)                                              registerTelegramHandlers                                           
 npath: ∞ (> 200), dtd: 878 (> 15)                   ../../openclaw/ui/src/ui/app-render.ts:89 - renderApp              
 npath: ∞ (> 200), cyclomatic: 163 (> 20)            ../../openclaw/src/commands/auth-choice.apply.api-providers.ts:72  
                                                     - applyAuthChoiceApiProviders                                      
 npath: ∞ (> 200), cyclomatic: 161 (> 20)            ../../openclaw/src/telegram/bot-message-context.ts:129 -           
                                                     buildTelegramMessageContext                                        
 complexity: 223 (> 15), npath: ∞ (> 200)            ../../openclaw/src/cli/plugins-cli.ts:163 - registerPluginsCli     
 npath: ∞ (> 200), cyclomatic: 146 (> 20)            ../../openclaw/src/slack/monitor/message-handler/prepare.ts:53 -   
                                                     prepareSlackMessage                                                
 complexity: 218 (> 15), dtd: 693 (> 15)             ../../openclaw/src/agents/tools/browser-tool.ts:221 -              
                                                     createBrowserTool                                                  
