PSScriptAnalyzer
PSScriptAnalyzer 是 PowerShell 模块和脚本的静态代码检查器。 PSScriptAnalyzer 通过运行一组规则来检查 PowerShell 代码的质量。
注意
对模块的支持有限。 请使用页面底部“反馈”部分中的“反馈”部分中的 “此产品”按钮在源存储库中提出问题。
PSScriptAnalyzer
Get-ScriptAnalyzerRule |
Gets the script analyzer rules on the local computer. |
Invoke-Formatter |
Formats a script text based on the input settings or default settings. |
Invoke-ScriptAnalyzer |
Evaluates a script or module based on selected best practice rules |