From 0ec66073ff59af7022ef4b062e687a540a8ee6fc Mon Sep 17 00:00:00 2001 From: Baard Hermansen Date: Thu, 5 Mar 2026 12:48:44 +0100 Subject: [PATCH 1/2] Fix typo in Invoke-Formatter documentation Added a missing word in example 3 and changed to correct code formatting in the same heading. --- reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md b/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md index 1ffb766..be9609c 100644 --- a/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md +++ b/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md @@ -9,11 +9,12 @@ schema: 2.0.0 # Invoke-Formatter ## SYNOPSIS + Formats a script text based on the input settings or default settings. ## SYNTAX -``` +```powershell Invoke-Formatter [-ScriptDefinition] [[-Settings] ] [[-Range] ] [] ``` @@ -76,7 +77,7 @@ function foo } ``` -### EXAMPLE 3 - Format the input script text using the settings defined a `.psd1` file +### EXAMPLE 3 - Format the input script text using the settings defined in a `.psd1` file ```powershell Invoke-Formatter -ScriptDefinition $scriptDefinition -Settings /path/to/settings.psd1 From ee67052f951c95406b4f94407565791e97897ad6 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Thu, 5 Mar 2026 07:34:38 -0600 Subject: [PATCH 2/2] Update Invoke-Formatter.md We don't use language tags for syntax blocks. --- reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md b/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md index be9609c..80711b0 100644 --- a/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md +++ b/reference/ps-modules/PSScriptAnalyzer/Invoke-Formatter.md @@ -14,7 +14,7 @@ Formats a script text based on the input settings or default settings. ## SYNTAX -```powershell +``` Invoke-Formatter [-ScriptDefinition] [[-Settings] ] [[-Range] ] [] ```