{"repo":"fummicc1/swift-complexity","free":true,"listed":false,"github":"https://github.com/fummicc1/swift-complexity","clone":"git clone https://github.com/fummicc1/swift-complexity.git","description":"Code Complexity Analyzer for Swift","language":"Swift","stars":38,"topics":["complexity-analysis","swift","analysis","metrics","cognitive-complexity","cyclomatic-complexity","lcom4"],"license":"MIT","category":"analytics","readme_excerpt":"swift-complexity A command-line tool to analyze Swift code complexity and quality metrics using swift-syntax. Features - Multiple Complexity Metrics : Supports cyclomatic complexity, cognitive complexity, LCOM4 cohesion, and type coupling analysis - LCOM4 Class Cohesion : High-precision class cohesion measurement using IndexStore-DB semantic analysis - Type Coupling Metrics : Semantic fan-in / fan-out / instability per type, plus a hotspot ranking that orders complexity violations by their blast radius (details) - Web-based Debug Interface : Interactive browser-based complexity analyzer (Try it online) - Xcode Integration : Seamless integration with Xcode via Build Tool Plugin for complexity feedback during build phase - Xcode Diagnostics : Display complexity warnings and errors directly in Xcode editor with accurate line numbers - Configurable Thresholds : Set custom complexity thresholds via Xcode Build Settings or environment variables - Per-Type Thresholds : Assign different thresholds to types by name (prefix/suffix) via a .swift-complexity.yml config — e.g. stricter limits for Repository , looser for UseCase - Inline Suppression : Exempt a specific function or type from threshold checks with a // swift-complexity:disable comment, optionally scoped to cyclomatic , cognitive , lcom4 , or coupling - Exit Code Integration : Returns exit code 1 when complexity thresholds are exceeded, perfect for CI/CD pipelines - Multiple Output Formats : Text, JSON, XML, Xcode diagnostics,","default_branch":null,"files":null,"tree":[],"storefront":"/r/fummicc1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fummicc1/swift-complexity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}