Skip to content

ziyuezh576/AzurePowerShellScriptAnalyzer

Repository files navigation

  1. Clone https://github.com/Azure/azure-powershell to "$env:USERPROFILE\source\repos"

  2. Clone https://github.com/MicrosoftDocs/azure-docs-powershell to "$env:USERPROFILE\source\repos" (optional)

  3. Run: Measure-MarkdownOrScript.ps1 -MarkdownPaths "$env:USERPROFILE\source\repos\azure-docs-powershell\azps-7.3.0" -RulePaths ".\AnalyzeRules\*.psm1" -Recurse -AnalyzeScriptsInFile -OutputScriptsInFile -OutputResultsByModule

  4. 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"
  5. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published