Skip to content

Commit 84753a4

Browse files
committed
linting changes
1 parent 934a5a6 commit 84753a4

14 files changed

Lines changed: 44 additions & 44 deletions

Private/ConvertTo-LMCustomPropertyArray.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ConvertTo-LMCustomPropertyArray {
2222
}
2323
}
2424
if ($customProperties.Count -eq 0) { return @() }
25-
return ,$customProperties
25+
return , $customProperties
2626
}
2727

2828
if ($Properties -is [System.Collections.IEnumerable] -and -not ($Properties -is [string])) {
@@ -50,7 +50,7 @@ function ConvertTo-LMCustomPropertyArray {
5050
}
5151

5252
if ($customProperties.Count -eq 0) { return @() }
53-
return ,$customProperties
53+
return , $customProperties
5454
}
5555

5656
throw "Unsupported property format. Provide a hashtable or an array of name/value objects."

Public/ConvertTo-LMUptimeDevice.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ function ConvertTo-LMUptimeDevice {
158158
$targetName = "${NamePrefix}$($Website.name)${NameSuffix}"
159159

160160
$parameters = @{
161-
Name = $targetName
162-
HostGroupIds = $TargetHostGroupIds
163-
Description = $Website.description
161+
Name = $targetName
162+
HostGroupIds = $TargetHostGroupIds
163+
Description = $Website.description
164164
}
165165

166166
if ($Website.pollingInterval) {
@@ -282,7 +282,7 @@ function ConvertTo-LMUptimeDevice {
282282

283283
if ($PSCmdlet.ShouldProcess($targetName, 'Create LM Uptime Device')) {
284284
$commonParams = @{}
285-
foreach ($commonParam in 'Debug','Verbose','WhatIf','Confirm') {
285+
foreach ($commonParam in 'Debug', 'Verbose', 'WhatIf', 'Confirm') {
286286
if ($PSBoundParameters.ContainsKey($commonParam)) {
287287
$commonParams[$commonParam] = $PSBoundParameters[$commonParam]
288288
}

Public/Get-LMAccountStatus.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Get-LMAccountStatus {
2727
Valid = $Script:LMAuth.Valid
2828
Logging = $Script:LMAuth.Logging
2929
Type = $Script:LMAuth.Type
30-
Id = $Script:LMAuth.Id
30+
Id = $Script:LMAuth.Id
3131
GovCloud = $Script:LMAuth.GovCloud
3232
}
3333
return $Result

Public/Get-LMNormalizedProperty.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function Get-LMNormalizedProperty {
109109

110110
}
111111
else {
112-
Write-Error "This cmdlet is for internal use only at this time does not support LMv1 or Bearer auth. Use Connect-LMAccount to login with the correct auth type and try again"
112+
Write-Error "This cmdlet is for internal use only at this time does not support LMv1 or Bearer auth. Use Connect-LMAccount to login with the correct auth type and try again"
113113
}
114114
}
115115
end {}

Public/Invoke-LMAPIRequest.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ function Invoke-LMAPIRequest {
264264

265265
# Build parameters for Invoke-LMRestMethod
266266
$restParams = @{
267-
Uri = $Uri
268-
Method = $Method
269-
Headers = $Headers[0]
270-
WebSession = $Headers[1]
271-
CallerPSCmdlet = $PSCmdlet
267+
Uri = $Uri
268+
Method = $Method
269+
Headers = $Headers[0]
270+
WebSession = $Headers[1]
271+
CallerPSCmdlet = $PSCmdlet
272272
}
273273

274274
if ($Body) {
@@ -298,9 +298,9 @@ function Invoke-LMAPIRequest {
298298
if ($OutFile) {
299299
Write-Verbose "Response saved to: $OutFile"
300300
return [PSCustomObject]@{
301-
Success = $true
301+
Success = $true
302302
FilePath = $OutFile
303-
Message = "Response saved successfully"
303+
Message = "Response saved successfully"
304304
}
305305
}
306306

Public/Invoke-LMReportExecution.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function Invoke-LMReportExecution {
7070
$resourcePath = "/report/reports/$reportId/executions"
7171

7272
$Data = @{
73-
withAdminId = $WithAdminId
73+
withAdminId = $WithAdminId
7474
receiveEmails = $ReceiveEmails
7575
}
7676

Public/New-LMNormalizedProperty.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function New-LMNormalizedProperty {
9393
}
9494
}
9595
else {
96-
Write-Error "This cmdlet is for internal use only at this time does not support LMv1 or Bearer auth. Use Connect-LMAccount to login with the correct auth type and try again"
96+
Write-Error "This cmdlet is for internal use only at this time does not support LMv1 or Bearer auth. Use Connect-LMAccount to login with the correct auth type and try again"
9797
}
9898
}
9999
end {}

Public/New-LMServiceTemplate.ps1

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@ function New-LMServiceTemplate {
102102

103103
#Build the service template data structure
104104
$ServiceTemplateData = @{
105-
description = $Description
106-
filterType = $FilterType
107-
cardinality = $Cardinality
108-
propertySelector = $PropertySelector
105+
description = $Description
106+
filterType = $FilterType
107+
cardinality = $Cardinality
108+
propertySelector = $PropertySelector
109109
membershipEvaluationInterval = $MembershipEvaluationInterval
110-
resourceGroupRecords = $ResourceGroupRecords
111-
properties = $Properties
112-
serviceNamingPattern = $ServiceNamingPattern
113-
groupNamingPattern = $GroupNamingPattern
114-
model = "RestServiceTemplate"
115-
name = $Name
116-
defaultCriticality = $DefaultCriticality
117-
createGroup = $CreateGroup
118-
criticality = $Criticality
119-
staticGroup = $StaticGroup
110+
resourceGroupRecords = $ResourceGroupRecords
111+
properties = $Properties
112+
serviceNamingPattern = $ServiceNamingPattern
113+
groupNamingPattern = $GroupNamingPattern
114+
model = "RestServiceTemplate"
115+
name = $Name
116+
defaultCriticality = $DefaultCriticality
117+
createGroup = $CreateGroup
118+
criticality = $Criticality
119+
staticGroup = $StaticGroup
120120
}
121121

122122
#Build the complete payload structure

Public/New-LMWebsite.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function New-LMWebsite {
379379
}
380380

381381
# Set default based on specified testLocations
382-
if($TestLocationCollectorIds -or $TestLocationSmgIds){
382+
if ($TestLocationCollectorIds -or $TestLocationSmgIds) {
383383
$Data.useDefaultLocationSetting = $false
384384
}
385385

Public/Remove-LMNormalizedProperty.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function Remove-LMNormalizedProperty {
6666
}
6767
}
6868
else {
69-
Write-Error "This cmdlet is for internal use only at this time does not support LMv1 or Bearer auth. Use Connect-LMAccount to login with the correct auth type and try again"
69+
Write-Error "This cmdlet is for internal use only at this time does not support LMv1 or Bearer auth. Use Connect-LMAccount to login with the correct auth type and try again"
7070
}
7171
}
7272
end {}

0 commit comments

Comments
 (0)