Filter By

Package Types

Operating System

Categories

Trust Information

By: | 50 downloads | Last Updated: 6/21/2024 | Latest Version: 2.0.1

Calculates the cyclomatic complexity of a PowerShell script or code block, including both functions and top-level code.

By: | 0 downloads | Last Updated: 7/3/2026 | Latest Version: 0.1.0

Cyclomatic and cognitive complexity for PowerShell. Cognitive complexity is a faithful port of the SonarSource metric (nesting-aware -- the better signal for "hard to understand"), validated against reference scores. Measures per unit (function/filter + script body) via the PowerShell AST; ships a Test-PSComplexity gate for CI.