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 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈