Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Add UTF-8 BOM for PowerShell files #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
insert_final_newline = true

[*.{ps1,psm1,psd1}]
charset = utf-8-bom
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.RemotingTools/build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Do NOT edit this file. Edit dobuild.ps1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

##
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

Describe "Test Microsoft.PowerShell.RemotingTools module" -tags CI {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{
ModuleVersion = '1.0'
RequiredAssemblies = @('AKVaultBin.dll')
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@{
@{
ModuleVersion = '1.0'
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{
ModuleVersion = '1.0'
RootModule = '.\SecretManagementExtension.psm1'
FunctionsToExport = @('Set-Secret','Get-Secret','Remove-Secret','Get-SecretInfo','Test-SecretVault')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

function Check-SubscriptionLogIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{
ModuleVersion = '1.0'
RequiredAssemblies = @('TestLocalBin.dll')
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{
ModuleVersion = '1.0'
RootModule = '.\SecretManagementExtension.psm1'
FunctionsToExport = @('Set-Secret','Get-Secret','Remove-Secret','Get-SecretInfo','Test-SecretVault')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

function Get-Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@{
@{
ModuleVersion = '1.0'
}
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.SecretManagement/build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Do NOT edit this file. Edit dobuild.ps1
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.SecretManagement/doBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

Describe "Test Microsoft.PowerShell.SecretManagement module" -tags CI {
Expand Down
4 changes: 2 additions & 2 deletions Modules/Microsoft.PowerShell.TextUtility/build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

[CmdletBinding()]
Expand All @@ -13,4 +13,4 @@ if ($Clean) {
}

dotnet build
Pop-Location
Pop-Location
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

@{
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.ThreadJob/build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Do NOT edit this file. Edit dobuild.ps1
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.ThreadJob/doBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

##
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{

# Script module or binary module file associated with this manifest.
RootModule = 'Microsoft.PowerShell.UnixCompleters.dll'
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.UnixCompleters/OnStart.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# Informative messages to let users know that completers have been registered
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft.PowerShell.UnixCompleters/build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

#requires -Version 6.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe 'Microsoft.PowerShell.UnixCompleters completion tests' {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{
ModuleVersion = '1.0'
RequiredAssemblies = @('TestLocalBin.dll')
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{
@{
ModuleVersion = '1.0'
RootModule = '.\SecretManagementExtension.psm1'
FunctionsToExport = @('Set-Secret','Get-Secret','Remove-Secret','Get-SecretInfo','Test-SecretVault')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

function Get-Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@{
@{
ModuleVersion = '1.0'
}