From b3804b5e2c65a4f7d81e3cc7fce73909884c7cea Mon Sep 17 00:00:00 2001 From: Tim Curwick Date: Wed, 14 Feb 2018 11:50:41 -0600 Subject: [PATCH 1/2] Fix typo in comment-based help --- .../Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 b/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 index 3900dc578..301cb842f 100644 --- a/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 +++ b/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 @@ -126,7 +126,7 @@ function Measure-RequiresRunAsAdministrator .DESCRIPTION The #Requires statement prevents a script from running unless the Windows PowerShell version, modules, snap-ins, and module and snap-in version prerequisites are met. From Windows PowerShell 3.0, the #Requires statement let script developers specify Windows PowerShell modules that the script requires. - To fix a violation of this rule, please consider to use #Requires -RunAsAdministrator instead of using Import-Module. + To fix a violation of this rule, please consider to use #Requires -Modules instead of using Import-Module. .EXAMPLE Measure-RequiresModules -ScriptBlockAst $ScriptBlockAst .INPUTS @@ -938,4 +938,4 @@ function Measure-HelpNote } } -Export-ModuleMember -Function Measure* \ No newline at end of file +Export-ModuleMember -Function Measure* From 4625f5824cd3ea842cfe32bb254f2d69f2507993 Mon Sep 17 00:00:00 2001 From: Tim Curwick Date: Wed, 14 Feb 2018 14:13:26 -0600 Subject: [PATCH 2/2] Added to typo fix --- Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 b/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 index 301cb842f..d5b39baca 100644 --- a/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 +++ b/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 @@ -126,7 +126,7 @@ function Measure-RequiresRunAsAdministrator .DESCRIPTION The #Requires statement prevents a script from running unless the Windows PowerShell version, modules, snap-ins, and module and snap-in version prerequisites are met. From Windows PowerShell 3.0, the #Requires statement let script developers specify Windows PowerShell modules that the script requires. - To fix a violation of this rule, please consider to use #Requires -Modules instead of using Import-Module. + To fix a violation of this rule, please consider to use #Requires -Modules { | } instead of using Import-Module. .EXAMPLE Measure-RequiresModules -ScriptBlockAst $ScriptBlockAst .INPUTS