共用方式為


PSScriptAnalyzer Module

PSScriptAnalyzer 是 PowerShell 模組和腳本的靜態程式代碼檢查工具。 PSScriptAnalyzer 會執行一組規則來檢查 PowerShell 程式代碼的品質。

備註

模組的支援有限。 請使用頁面底部 [意見反應] 區段中的 [意見反應] 區段中的 [此產品] 按鈕,在來源存放庫中提出問題。

PSScriptAnalyzer Cmdlet

指令程式 Description
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