-
Clone https://github.com/Azure/azure-powershell to "$env:USERPROFILE\source\repos"
-
Clone https://github.com/MicrosoftDocs/azure-docs-powershell to "$env:USERPROFILE\source\repos" (optional)
-
Run: Measure-MarkdownOrScript.ps1 -MarkdownPaths "$env:USERPROFILE\source\repos\azure-docs-powershell\azps-7.3.0" -RulePaths ".\AnalyzeRules\*.psm1" -Recurse -AnalyzeScriptsInFile -OutputScriptsInFile -OutputResultsByModule
-
It will create:
- PowerShell codes splitted by example to ".\ScriptsByExample\$module\*.ps1"
- Analyzing results by module to ".\ScriptsByExample\$module.csv"
- ".\Scale.csv"
- ".\Missing.csv"
- ".\DeletingSeparating.csv"
-
Run: Measure-MarkdownOrScript.ps1 -ScriptPaths "$env:USERPROFILE\output\ScriptsByExample\Az.Network\Get-AzVirtualNetworkSubnetConfig-1.ps1" -RulePaths "$env:USERPROFILE\source\repos\AzurePowerShellScriptAnalyzer\AnalyzeRules*.psm1" -Recurse -OutputResultsByModule