Skip to content

Commit

Permalink
Merge pull request #1887 from microsoft/dpaul-NewRule
Browse files Browse the repository at this point in the history
Don't use semicolons as line terminators enabled for code formatter.
  • Loading branch information
dpaulson45 authored Nov 21, 2023
2 parents b8d625d + d97954f commit ac99778
Show file tree
Hide file tree
Showing 25 changed files with 337 additions and 333 deletions.
2 changes: 1 addition & 1 deletion .build/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $unreferencedScriptFiles = @($allScriptFiles | Where-Object {
}

return $true
});
})

$unreferencedSharedScriptFiles = @($unreferencedScriptFiles | Where-Object {
$_.StartsWith("$repoRoot\Shared\")
Expand Down
2 changes: 1 addition & 1 deletion .build/CodeFormatterChecks/CheckScriptFileHasBOM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function CheckScriptFileHasBOM {
Write-Host "Added BOM: $($FileInfo.FullName)"
$false
} catch {
Write-Warning "File has no BOM and couldn't be fixed automatically: $($FileInfo.FullName). Exception: $($_.Exception)";
Write-Warning "File has no BOM and couldn't be fixed automatically: $($FileInfo.FullName). Exception: $($_.Exception)"
$true
}
} else {
Expand Down
6 changes: 3 additions & 3 deletions Admin/Find-AmbiguousSids.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ begin {
Write-Host "Using GC $GCName"
$ldapConn = New-Object System.DirectoryServices.Protocols.LdapConnection("$($GCName):3268")
$searchReq = New-Object System.DirectoryServices.Protocols.SearchRequest("", $filter, "Subtree", $null)
$prc = New-Object System.DirectoryServices.Protocols.PageResultRequestControl($pageSize);
[void]$searchReq.Controls.Add($prc);
$prc = New-Object System.DirectoryServices.Protocols.PageResultRequestControl($pageSize)
[void]$searchReq.Controls.Add($prc)

$sidProperties = @("objectSid", "sidHistory", "msExchMasterAccountSid")
$containersToIgnore = @(",CN=WellKnown Security Principals,", ",CN=Builtin,", ",CN=ForeignSecurityPrincipals,")
Expand Down Expand Up @@ -99,7 +99,7 @@ process {

$objectsProcessed++
}
} while ($prc.Cookie.Length -gt 0);
} while ($prc.Cookie.Length -gt 0)
}

end {
Expand Down
2 changes: 1 addition & 1 deletion Admin/Update-Engines.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function ExtractCab($sourceCabPath, $destinationDirectory) {
# Process each item in the cab. Determine if the destination
# is a sub directory and create if necessary.
for ($i=0; $i -lt $itemCount; $i++) {
$lastPathIndex = $source.item($i).Path.LastIndexOf("\");
$lastPathIndex = $source.item($i).Path.LastIndexOf("\")

# If the file inside the zip file should be extracted
# to a subfolder, then we need to reset the destination
Expand Down
10 changes: 5 additions & 5 deletions Calendar/Check-SharingStatus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function ProcessCalendarSharingInviteLogs {

# Define the header row
$header = "Timestamp", "Mailbox", "Entry MailboxOwner", "Recipient", "RecipientType", "SharingType", "DetailLevel"
$csvString = @();
$csvString = @()
$csvString = $header -join ","
$csvString += "`n"

Expand All @@ -74,7 +74,7 @@ function ProcessCalendarSharingInviteLogs {
return
}

$logLines =@();
$logLines =@()
# Split the output into an array of lines
$logLines = $logOutput.MailboxLog -split "`r`n"

Expand Down Expand Up @@ -125,7 +125,7 @@ function ProcessCalendarSharingAcceptLogs {

# Define the header row
$header = "Timestamp", "Mailbox", "SharedCalendarOwner", "FolderName"
$csvString = @();
$csvString = @()
$csvString = $header -join ","
$csvString += "`n"

Expand All @@ -150,7 +150,7 @@ function ProcessCalendarSharingAcceptLogs {
return
}

$logLines =@();
$logLines =@()
# Split the output into an array of lines
$logLines = $logOutput.MailboxLog -split "`r`n"

Expand Down Expand Up @@ -225,7 +225,7 @@ function GetOwnerInformation {
if ($script:OwnerMB.DisplayName -like "Redacted*") {
Write-Host -ForegroundColor Yellow "Do Not have PII information for the Owner."
Write-Host -ForegroundColor Yellow "Get PII Access for $($script:OwnerMB.Database)."
$script:PIIAccess = $false;
$script:PIIAccess = $false
}

Write-Host -ForegroundColor DarkYellow "Owner Calendar Folder Statistics:"
Expand Down
Loading

0 comments on commit ac99778

Please sign in to comment.