Skip to content

Commit 46a9e6f

Browse files
author
Robin Stolpe
committed
fixed white space
1 parent 72d3da7 commit 46a9e6f

2 files changed

Lines changed: 4 additions & 54 deletions

File tree

MaintainModule/MaintainModule.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Function Uninstall-RSModule {
9797
Write-Output "`n---/// Script Finished! ///---"
9898
}
9999
Function Update-RSModule {
100-
<#
100+
<#
101101
.SYNOPSIS
102102
This module let you maintain your installed modules in a easy way.
103103
@@ -111,7 +111,7 @@ Function Update-RSModule {
111111
.PARAMETER Scope
112112
Need to specify scope of the installation/update for the module, either AllUsers or CurrentUser. Default is CurrentUser.
113113
If this parameter is empty it will use CurrentUser
114-
The parameter -Scope don't effect the uninstall-module function this is because of limitation from Microsoft.
114+
The parameter -Scope don't effect the uninstall-module function this is because of limitation from Microsoft.
115115
- Scope effect Install/update module function.
116116
117117
.PARAMETER ImportModule
@@ -156,7 +156,7 @@ Function Update-RSModule {
156156
Param(
157157
[Parameter(Mandatory = $false, HelpMessage = "Enter module or modules (separated with ,) that you want to update, if you don't enter any all of the modules will be updated")]
158158
[string]$Module,
159-
[ValidateSet("CurrentUser", "AllUsers")]
159+
[ValidateSet("CurrentUser", "AllUsers")]
160160
[Parameter(Mandatory = $true, HelpMessage = "Enter CurrentUser or AllUsers depending on what scope you want to change your modules")]
161161
[string]$Scope = "CurrentUser",
162162
[Parameter(Mandatory = $false, HelpMessage = "Import modules that has been entered in the module parameter at the end of this function")]
@@ -266,7 +266,7 @@ Function Update-RSModule {
266266
# Collect all of the imported modules.
267267
Write-Verbose "Collecting all of the installed modules..."
268268
$ImportedModules = Get-Module | Select-Object Name, Version
269-
269+
270270
# Import module if it's not imported
271271
Write-Verbose "Starting to import the modules..."
272272
foreach ($m in $Module.Split()) {
Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +0,0 @@
1-
2-
Line : 2
3-
Column : 7
4-
Message : Line has trailing whitespace
5-
Extent : System.Management.Automation.Language.ScriptExtent
6-
RuleName : PSAvoidTrailingWhitespace
7-
Severity : Information
8-
ScriptName : Update-RSModule.ps1
9-
ScriptPath : /Users/rstolpe/Dev/GitHub/MaintainModule/.src/public/function/Update-RSModule.ps1
10-
RuleSuppressionID :
11-
SuggestedCorrections : {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent}
12-
IsSuppressed : False
13-
14-
Line : 16
15-
Column : 118
16-
Message : Line has trailing whitespace
17-
Extent : System.Management.Automation.Language.ScriptExtent
18-
RuleName : PSAvoidTrailingWhitespace
19-
Severity : Information
20-
ScriptName : Update-RSModule.ps1
21-
ScriptPath : /Users/rstolpe/Dev/GitHub/MaintainModule/.src/public/function/Update-RSModule.ps1
22-
RuleSuppressionID :
23-
SuggestedCorrections : {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent}
24-
IsSuppressed : False
25-
26-
Line : 61
27-
Column : 49
28-
Message : Line has trailing whitespace
29-
Extent : System.Management.Automation.Language.ScriptExtent
30-
RuleName : PSAvoidTrailingWhitespace
31-
Severity : Information
32-
ScriptName : Update-RSModule.ps1
33-
ScriptPath : /Users/rstolpe/Dev/GitHub/MaintainModule/.src/public/function/Update-RSModule.ps1
34-
RuleSuppressionID :
35-
SuggestedCorrections : {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent}
36-
IsSuppressed : False
37-
38-
Line : 171
39-
Column : 1
40-
Message : Line has trailing whitespace
41-
Extent : System.Management.Automation.Language.ScriptExtent
42-
RuleName : PSAvoidTrailingWhitespace
43-
Severity : Information
44-
ScriptName : Update-RSModule.ps1
45-
ScriptPath : /Users/rstolpe/Dev/GitHub/MaintainModule/.src/public/function/Update-RSModule.ps1
46-
RuleSuppressionID :
47-
SuggestedCorrections : {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent}
48-
IsSuppressed : False
49-
50-

0 commit comments

Comments
 (0)