Get-CyclomaticComplexity

2.0.1

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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Get-CyclomaticComplexity

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • https://github.com/voytas75

Tags

Cyclomatic Complexity Script Function code

Functions

Get-CyclomaticComplexity Get-ComplexityDescription

Dependencies

This script has no dependencies.

Release Notes

2.0.1: Added functionality to create objects from complexity data for easier manipulation and default sorting by complexity in decreasing order.
1.1.0: Added analysis of top-level code outside of functions.
1.0.1: initializing.

FileList

Version History

Version Downloads Last updated
2.0.1 (current version) 11 6/21/2024
1.0.1 10 6/17/2024