Skip to content

Commit 3274c23

Browse files
Remove "All Rights Reserved" from copyright notices (#1466)
Per Microsoft policy at: https://docs.opensource.microsoft.com/content/releasing/copyright-headers.html All copyright notices no longer include "All Rights Reserved" and the comment style has been updated to be consistent with policy. Missing headers have been added.
1 parent ffc9c18 commit 3274c23

File tree

310 files changed

+649
-1142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+649
-1142
lines changed

.devcontainer/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#-------------------------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4-
#-------------------------------------------------------------------------------------------------------------
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
FROM mcr.microsoft.com/dotnet/core/sdk:2.1.802
75

.vscode/snippets.code-snippets

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
"Copyright header": {
3131
"prefix": "CopyrightHeader",
3232
"body": [
33-
"//",
34-
"// Copyright (c) Microsoft. All rights reserved.",
35-
"// Licensed under the MIT license. See LICENSE file in the project root for full license information.",
36-
"//"
33+
"// Copyright (c) Microsoft Corporation.",
34+
"// Licensed under the MIT License."
3735
],
3836
"description": "Copyright header"
3937
}

PowerShellEditorServices.Common.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<VersionPrefix>2.4.1</VersionPrefix>
44
<VersionSuffix>preview.1</VersionSuffix>
55
<Company>Microsoft</Company>
6-
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
6+
<Copyright>© Microsoft Corporation.</Copyright>
77
<LangVersion>9.0</LangVersion>
88
<PackageTags>PowerShell;editor;development;language;debugging</PackageTags>
99
<PackageLicenseUrl>https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/master/LICENSE</PackageLicenseUrl>

PowerShellEditorServices.build.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
param(
75
[ValidateSet("Debug", "Release")]

build.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env pwsh
2+
3+
# Copyright (c) Microsoft Corporation.
4+
# Licensed under the MIT License.
5+
26
param(
37
[Parameter()]
48
[switch]
@@ -96,4 +100,4 @@ if ($Bootstrap) {
96100
if($Test) {
97101
Invoke-Build Test
98102
}
99-
}
103+
}

docs/template/conceptual.html.primary.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
1+
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
22
{{!include(/^styles/.*/)}}
33
{{!include(/^fonts/.*/)}}
44
{{!include(favicon.ico)}}

docs/template/partials/class.tmpl.partial

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
1+
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
22

33
{{^_disableContribution}}
44
{{#docurl}}<a href="{{docurl}}" class="pull-right mobile-hide"><span class="fa fa-github"></span>{{__global.improveThisDoc}}</a>{{/docurl}}

docs/template/partials/footer.tmpl.partial

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
1+
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
22

33
<footer>
44
<div class="inner-footer">

docs/template/partials/head.tmpl.partial

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
1+
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
22

33
<head>
44
<meta charset="utf-8">
@@ -25,4 +25,4 @@
2525
ga('send', 'pageview');
2626
</script>
2727
-->
28-
</head>
28+
</head>

docs/template/partials/namespace.tmpl.partial

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
1+
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
22

33
{{^_disableContribution}}
44
{{#docurl}}

docs/template/partials/navbar.tmpl.partial

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
1+
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
22

33
<nav class="navbar navbar-inverse">
44
<div class="container">

module/PowerShellEditorServices.VSCode/PowerShellEditorServices.VSCode.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Author = 'Microsoft'
2727
CompanyName = 'Microsoft'
2828

2929
# Copyright statement for this module
30-
Copyright = '(c) 2017 Microsoft. All rights reserved.'
30+
Copyright = '(c) 2021 Microsoft Corporation.'
3131

3232
# Description of the functionality provided by this module
3333
Description = 'Provides added functionality to PowerShell Editor Services for the Visual Studio Code editor.'

module/PowerShellEditorServices/Commands/PowerShellEditorServices.Commands.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Author = 'Microsoft'
2424
CompanyName = 'Microsoft'
2525

2626
# Copyright statement for this module
27-
Copyright = '(c) 2017 Microsoft. All rights reserved.'
27+
Copyright = '(c) 2021 Microsoft Corporation.'
2828

2929
# Description of the functionality provided by this module
3030
Description = 'Provides internal commands for PowerShell Editor Services that only work in an editor session.'

module/PowerShellEditorServices/Commands/PowerShellEditorServices.Commands.psm1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
Microsoft.PowerShell.Utility\Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore
75

module/PowerShellEditorServices/Commands/Private/BuiltInCommands.ps1

+3
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
Register-EditorCommand `
25
-Name 'PowerShellEditorServices.OpenEditorProfile' `
36
-DisplayName 'Open Editor Profile' `

module/PowerShellEditorServices/Commands/Public/Clear-Host.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
Microsoft.PowerShell.Management\Get-Item function:Clear-Host | Microsoft.PowerShell.Management\Set-Item function:__clearhost
75

module/PowerShellEditorServices/Commands/Public/CmdletInterface.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
<#
75
.EXTERNALHELP ..\PowerShellEditorServices.Commands-help.xml

module/PowerShellEditorServices/Commands/Public/ConvertFrom-ScriptExtent.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function ConvertFrom-ScriptExtent {
75
<#

module/PowerShellEditorServices/Commands/Public/ConvertTo-ScriptExtent.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function ConvertTo-ScriptExtent {
75
<#

module/PowerShellEditorServices/Commands/Public/Find-Ast.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Find-Ast {
75
<#

module/PowerShellEditorServices/Commands/Public/Get-Token.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Get-Token {
75
<#

module/PowerShellEditorServices/Commands/Public/Import-EditorCommand.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Import-EditorCommand {
75
<#

module/PowerShellEditorServices/Commands/Public/Join-ScriptExtent.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Join-ScriptExtent {
75
<#

module/PowerShellEditorServices/Commands/Public/Out-CurrentFile.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Out-CurrentFile {
75
<#

module/PowerShellEditorServices/Commands/Public/Set-ScriptExtent.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Set-ScriptExtent {
75
<#

module/PowerShellEditorServices/Commands/Public/Test-ScriptExtent.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
function Test-ScriptExtent {
75
<#

module/PowerShellEditorServices/Start-EditorServices.ps1

+3
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
<#
25
.SYNOPSIS
36
Starts the language and debug services from the PowerShellEditorServices module.

scripts/AddCopyrightHeaders.ps1

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
#
2-
# Copyright (c) Microsoft. All rights reserved.
3-
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
#
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
53

64
$copyrightHeaderString =
75
@'
8-
//
9-
// Copyright (c) Microsoft. All rights reserved.
10-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
11-
//
6+
// Copyright (c) Microsoft Corporation.
7+
// Licensed under the MIT License.
128
'@
139

1410
$global:updateCount = 0;
@@ -25,7 +21,7 @@ function Add-CopyrightHeaders($basePath)
2521
if ($fileContent.StartsWith($copyrightHeaderString) -eq $false)
2622
{
2723
# Add the copyright header to the file
28-
Set-Content $sourceFile.FullName ($copyrightHeaderString + "`r`n`r`n" + $fileContent)
24+
Set-Content $sourceFile.FullName ($copyrightHeaderString + [Environment]::NewLine + [Environment]::NewLine + $fileContent)
2925
Write-Output ("Updated {0}" -f (Resolve-Path $sourceFile.FullName -Relative))
3026
$global:updateCount++
3127
}

scripts/BuildDocs.ps1

+3
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
param([switch]$Serve, [switch]$Clean, [switch]$Publish)
25

36
$toolsPath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\tools")

scripts/FetchLatestBuild.ps1

+3
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
param($buildVersion = $null)
25

36
$releasePath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\release")

scripts/PackageSignedBinaries.ps1

+3
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
# This script assumes the FetchBuildBinaries.ps1 has been run and
25
# the binaries in 'release\BinariesToSign' have been signed and
36
# replaced.

scripts/PublishPackages.ps1

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
13

24
$releasePath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\release")
35
$finalPackagePath = [System.IO.Path]::GetFullPath("$releasePath\FinalPackages")
@@ -15,8 +17,8 @@ foreach ($package in $packages) {
1517
}
1618
else
1719
{
18-
Write-Output "Pushed package $package.FullName"
20+
Write-Output "Pushed package $package.FullName"
1921
}
2022
}
2123

22-
# TODO: Use Find-Package to verify that the package is there?
24+
# TODO: Use Find-Package to verify that the package is there?

scripts/azurePipelinesBuild.ps1

+3
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
$ErrorActionPreference = 'Stop'
25

36
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null

src/PowerShellEditorServices.Hosting/Commands/InvokeReadLineConstructorCommand.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using System;
75
using System.Management.Automation;

src/PowerShellEditorServices.Hosting/Commands/InvokeReadLineForEditorServicesCommand.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using System;
75
using System.Management.Automation;

src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using Microsoft.PowerShell.Commands;
75
using System;

src/PowerShellEditorServices.Hosting/Configuration/EditorServicesConfig.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using System.Collections.Generic;
75
using System.Management.Automation;

src/PowerShellEditorServices.Hosting/Configuration/HostInfo.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using System;
75

src/PowerShellEditorServices.Hosting/Configuration/HostLogger.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using System;
75
using System.Collections.Concurrent;

src/PowerShellEditorServices.Hosting/Configuration/SessionFileWriter.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
53

64
using System;
75
using System.Collections.Generic;

0 commit comments

Comments
 (0)