I contribute to open‑source projects by building small features. I focus on code quality, readability, and maintainability, and I collaborate through issues and pull requests
PR: feat: add nesting depth to complexity metrics (#150)
Description: Add maximum nesting depth calculation to complexity analysis. Store function AST node in the CFG to enable calculating CFG-based (cyclomatic complexity) and AST-based (nesting depth) metrics in a single pass.
Changes Made:
NestingDepth field to domain.ComplexityMetricsFunctionNode field to analyzer.CFGCalculateComplexityWithConfignesting_depth in JSON, YAML, and CSV outputsLink: PR #150
PR: feat: Add maximum nesting depth calculator for Python functions (#143)
Description: Implements a function to calculate the maximum nesting depth for Python functions by traversing their Abstract Syntax Tree (AST).
Changes Made:
internal/analyzer/nesting_depth.go
CalculateMaxNestingDepth(): Computes max nesting depth for a single Python functiontraverseForNesting(): Recursive AST traversal helperisNestingNode(): Determines node types that increase nesting depthisComprehensionNode(): Identifies comprehension nodesNestingDepthResult: Holds nesting depth metrics and location infointernal/analyzer/nesting_depth_test.go
Link: PR #143