Skip to content

Commit f795e6e

Browse files
committed
Add missing copyright headers
1 parent 29d21a9 commit f795e6e

File tree

12 files changed

+38
-5
lines changed

12 files changed

+38
-5
lines changed

scripts/AddCopyrightHeaders.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Add-CopyrightHeaders($basePath)
2121
if ($fileContent.StartsWith($copyrightHeaderString) -eq $false)
2222
{
2323
# Add the copyright header to the file
24-
Set-Content $sourceFile.FullName ($copyrightHeaderString + "`r`n`r`n" + $fileContent)
24+
Set-Content $sourceFile.FullName ($copyrightHeaderString + [Environment]::NewLine + [Environment]::NewLine + $fileContent)
2525
Write-Output ("Updated {0}" -f (Resolve-Path $sourceFile.FullName -Relative))
2626
$global:updateCount++
2727
}

src/PowerShellEditorServices.Hosting/GlobalSuppressions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// This file is used by Code Analysis to maintain SuppressMessage
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
// This file is used by Code Analysis to maintain SuppressMessage
25
// attributes that are applied to this project.
36
// Project-level suppressions either have no target or are given
47
// a specific target and scoped to a namespace, type, member, etc.

src/PowerShellEditorServices/Extensions/EditorCommandAttribute.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25

36
namespace Microsoft.PowerShell.EditorServices.Extensions

src/PowerShellEditorServices/GlobalSuppressions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// This file is used by Code Analysis to maintain SuppressMessage
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
// This file is used by Code Analysis to maintain SuppressMessage
25
// attributes that are applied to this project.
36
// Project-level suppressions either have no target or are given
47
// a specific target and scoped to a namespace, type, member, etc.

src/PowerShellEditorServices/Logging/HostLoggerAdapter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Microsoft.Extensions.Logging;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using Microsoft.Extensions.Logging;
25
using System;
36
using System.Collections.Generic;
47
using System.Text;

src/PowerShellEditorServices/Services/TextDocument/SemanticToken.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System.Collections.Generic;
25
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
36

src/PowerShellEditorServices/Utility/LspDebugUtils.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using System;
25
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
36
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
47

test/PowerShellEditorServices.Test.E2E/Processes/PsesStdioProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Collections.Generic;
36
using System.Diagnostics;

test/PowerShellEditorServices.Test.E2E/Processes/ServerProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.IO;
36
using System.Reactive.Subjects;

test/PowerShellEditorServices.Test.E2E/Processes/StdioServerProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Diagnostics;
36
using System.IO;

test/PowerShellEditorServices.Test.Shared/TestUtilities/TestUtilities.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Diagnostics;
36
using System.IO;

test/PowerShellEditorServices.Test/Session/PathEscapingTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using Xunit;
25
using System.IO;
36
using Microsoft.PowerShell.EditorServices.Services;

0 commit comments

Comments
 (0)