Skip to content

Remove "All Rights Reserved" from copyright notices #1466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2021
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

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

Expand Down
6 changes: 2 additions & 4 deletions .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@
"Copyright header": {
"prefix": "CopyrightHeader",
"body": [
"//",
"// Copyright (c) Microsoft. All rights reserved.",
"// Licensed under the MIT license. See LICENSE file in the project root for full license information.",
"//"
"// Copyright (c) Microsoft Corporation.",
"// Licensed under the MIT License."
],
"description": "Copyright header"
}
Expand Down
2 changes: 1 addition & 1 deletion PowerShellEditorServices.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<VersionPrefix>2.4.1</VersionPrefix>
<VersionSuffix>preview.1</VersionSuffix>
<Company>Microsoft</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Copyright>© Microsoft Corporation.</Copyright>
<LangVersion>9.0</LangVersion>
<PackageTags>PowerShell;editor;development;language;debugging</PackageTags>
<PackageLicenseUrl>https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/master/LICENSE</PackageLicenseUrl>
Expand Down
6 changes: 2 additions & 4 deletions PowerShellEditorServices.build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param(
[ValidateSet("Debug", "Release")]
Expand Down
6 changes: 5 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env pwsh

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param(
[Parameter()]
[switch]
Expand Down Expand Up @@ -96,4 +100,4 @@ if ($Bootstrap) {
if($Test) {
Invoke-Build Test
}
}
}
2 changes: 1 addition & 1 deletion docs/template/conceptual.html.primary.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}
{{!include(/^styles/.*/)}}
{{!include(/^fonts/.*/)}}
{{!include(favicon.ico)}}
Expand Down
2 changes: 1 addition & 1 deletion docs/template/partials/class.tmpl.partial
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}

{{^_disableContribution}}
{{#docurl}}<a href="{{docurl}}" class="pull-right mobile-hide"><span class="fa fa-github"></span>{{__global.improveThisDoc}}</a>{{/docurl}}
Expand Down
2 changes: 1 addition & 1 deletion docs/template/partials/footer.tmpl.partial
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}

<footer>
<div class="inner-footer">
Expand Down
4 changes: 2 additions & 2 deletions docs/template/partials/head.tmpl.partial
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}

<head>
<meta charset="utf-8">
Expand All @@ -25,4 +25,4 @@
ga('send', 'pageview');
</script>
-->
</head>
</head>
2 changes: 1 addition & 1 deletion docs/template/partials/namespace.tmpl.partial
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}

{{^_disableContribution}}
{{#docurl}}
Expand Down
2 changes: 1 addition & 1 deletion docs/template/partials/navbar.tmpl.partial
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}

<nav class="navbar navbar-inverse">
<div class="container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Author = 'Microsoft'
CompanyName = 'Microsoft'

# Copyright statement for this module
Copyright = '(c) 2017 Microsoft. All rights reserved.'
Copyright = '(c) 2021 Microsoft Corporation.'

# Description of the functionality provided by this module
Description = 'Provides added functionality to PowerShell Editor Services for the Visual Studio Code editor.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Author = 'Microsoft'
CompanyName = 'Microsoft'

# Copyright statement for this module
Copyright = '(c) 2017 Microsoft. All rights reserved.'
Copyright = '(c) 2021 Microsoft Corporation.'

# Description of the functionality provided by this module
Description = 'Provides internal commands for PowerShell Editor Services that only work in an editor session.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

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

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

Register-EditorCommand `
-Name 'PowerShellEditorServices.OpenEditorProfile' `
-DisplayName 'Open Editor Profile' `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

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

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

<#
.EXTERNALHELP ..\PowerShellEditorServices.Commands-help.xml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function ConvertFrom-ScriptExtent {
<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function ConvertTo-ScriptExtent {
<#
Expand Down
6 changes: 2 additions & 4 deletions module/PowerShellEditorServices/Commands/Public/Find-Ast.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Find-Ast {
<#
Expand Down
6 changes: 2 additions & 4 deletions module/PowerShellEditorServices/Commands/Public/Get-Token.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Get-Token {
<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Import-EditorCommand {
<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Join-ScriptExtent {
<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Out-CurrentFile {
<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Set-ScriptExtent {
<#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Test-ScriptExtent {
<#
Expand Down
3 changes: 3 additions & 0 deletions module/PowerShellEditorServices/Start-EditorServices.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

<#
.SYNOPSIS
Starts the language and debug services from the PowerShellEditorServices module.
Expand Down
14 changes: 5 additions & 9 deletions scripts/AddCopyrightHeaders.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

$copyrightHeaderString =
@'
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
'@

$global:updateCount = 0;
Expand All @@ -25,7 +21,7 @@ function Add-CopyrightHeaders($basePath)
if ($fileContent.StartsWith($copyrightHeaderString) -eq $false)
{
# Add the copyright header to the file
Set-Content $sourceFile.FullName ($copyrightHeaderString + "`r`n`r`n" + $fileContent)
Set-Content $sourceFile.FullName ($copyrightHeaderString + [Environment]::NewLine + [Environment]::NewLine + $fileContent)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly fixed up this script, but it also removes the BOM and adds an empty line to the end of files. We should replace this with existing tooling if available.

Write-Output ("Updated {0}" -f (Resolve-Path $sourceFile.FullName -Relative))
$global:updateCount++
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/BuildDocs.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param([switch]$Serve, [switch]$Clean, [switch]$Publish)

$toolsPath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\tools")
Expand Down
3 changes: 3 additions & 0 deletions scripts/FetchLatestBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param($buildVersion = $null)

$releasePath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\release")
Expand Down
3 changes: 3 additions & 0 deletions scripts/PackageSignedBinaries.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# This script assumes the FetchBuildBinaries.ps1 has been run and
# the binaries in 'release\BinariesToSign' have been signed and
# replaced.
Expand Down
6 changes: 4 additions & 2 deletions scripts/PublishPackages.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

$releasePath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\release")
$finalPackagePath = [System.IO.Path]::GetFullPath("$releasePath\FinalPackages")
Expand All @@ -15,8 +17,8 @@ foreach ($package in $packages) {
}
else
{
Write-Output "Pushed package $package.FullName"
Write-Output "Pushed package $package.FullName"
}
}

# TODO: Use Find-Package to verify that the package is there?
# TODO: Use Find-Package to verify that the package is there?
3 changes: 3 additions & 0 deletions scripts/azurePipelinesBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

$ErrorActionPreference = 'Stop'

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Microsoft.PowerShell.Commands;
using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Collections.Generic;
using System.Management.Automation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;

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

using System;
using System.Collections.Concurrent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
Expand Down
Loading