Skip to content

use consistent (c) for copyright symbol #5210

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 4 commits into from
Oct 26, 2017

Conversation

SteveL-MSFT
Copy link
Member

Looks like vscode also removed some trailing whitespace

Fix #4917

Copy link
Contributor

@PaulHigin PaulHigin left a comment

Choose a reason for hiding this comment

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

These are a lot of changes to look at, but it all looks good as far as I can tell.

Copy link
Member

@adityapatwardhan adityapatwardhan left a comment

Choose a reason for hiding this comment

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

LGTM

@adityapatwardhan
Copy link
Member

https://github.com/PowerShell/PowerShell/pull/5210/files?w=1 can be use to hide the whitespace only changes.

Copy link
Contributor

@markekraus markekraus left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1,6 +1,6 @@
//-----------------------------------------------------------------------
// <copyright company="Microsoft">
// Copyright (C) 2013 Microsoft Corporation
// Copyright (c) 2013 Microsoft Corporation
Copy link
Member

Choose a reason for hiding this comment

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

There are a bunch of entries that include the date. It should be removed and made consistent with the others shouldn't it? This comment applies to a bunch of other changes if it needs to be addressed.

Copyright (c) Microsoft Corporation, All rights reserved.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, my understanding is that the date doesn't matter. Will update.

@@ -656,7 +656,7 @@ namespace PowershellTestConfigNamespace
SessionType = 'Default'
Author = 'User'
CompanyName = 'Microsoft Corporation'
Copyright = 'Copyright (c) 2011 Microsoft Corporation. All rights reserved.'
Copyright (c) Microsoft Corporation. All rights reserved.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo. Please revert "Copyright = ".

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix

@@ -1,5 +1,5 @@
/*============================================================================
* Copyright (C) Microsoft Corporation, All rights reserved.
* Copyright (c) Microsoft Corporation, All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please replace "," with dot.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

We have many such patterns below.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll fix all the occurrences

@@ -1,5 +1,5 @@
//
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra spaces.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,5 +1,5 @@
//
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra spaces.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,5 +1,5 @@
//
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra spaces.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,4 +1,4 @@
#Copyright (c) 2008 Microsoft Corporation
#Copyright (c) Microsoft Corporation
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,5 +1,5 @@
//
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Collaborator

@iSazonov iSazonov Oct 25, 2017

Choose a reason for hiding this comment

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

Extra spaces.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,5 +1,5 @@
//
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra spaces.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,7 +1,7 @@
// ----------------------------------------------------------------------
//
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2014.
// Copyright (c) Microsoft Corporation, 2014.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,7 +1,7 @@
// ----------------------------------------------------------------------
//
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2005.
// Copyright (c) Microsoft Corporation, 2005.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,4 +1,4 @@
// Copyright (C) 2005 Microsoft Corporation
// Copyright (c) Microsoft Corporation
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -1,7 +1,7 @@
// ----------------------------------------------------------------------
//
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2008.
// Copyright (c) Microsoft Corporation, 2008.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -2,7 +2,7 @@
ModuleVersion = '3.0.0.1'
Author = 'fayzas'
CompanyName = 'Microsoft Corporation'
Copyright = '(c) 2013 Microsoft Corporation. All rights reserved.'
Copyright (c) Microsoft Corporation. All rights reserved.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo. Please revert "Copyright = "

@@ -12,7 +12,7 @@ GUID = 'cc1c8e94-51d1-4bc1-b508-62bc09f02f54'

CompanyName = 'Microsoft Corporation'

Copyright = 'Copyright (C) Microsoft Corporation, All rights reserved.'
Copyright = 'Copyright (c) Microsoft Corporation, All rights reserved.'
Copy link
Collaborator

@iSazonov iSazonov Oct 25, 2017

Choose a reason for hiding this comment

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

Please replace "," with dot.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

Below too.

@@ -2,7 +2,7 @@
GUID="41857994-4283-4757-a932-0b0edb104913"
Author="Microsoft Corporation"
CompanyName="Microsoft Corporation"
Copyright="© Microsoft Corporation. All rights reserved."
Copyright="(c) Microsoft Corporation. All rights reserved."
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@@ -11,7 +11,7 @@
<projectUrl>https://github.com/powershell/powershell</projectUrl>
<iconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_64.png</iconUrl>
<description>This package contains the PowerShell Core for $runtime$.</description>
<copyright>Copyright © Microsoft Corporation</copyright>
<copyright>Copyright (c) Microsoft Corporation</copyright>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."

@SteveL-MSFT SteveL-MSFT force-pushed the copyright branch 2 times, most recently from abfcda3 to 78feb29 Compare October 25, 2017 08:34
@SteveL-MSFT
Copy link
Member Author

@iSazonov I think I got all of them.

Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

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

Please replace "All Rights Reserved" with "All rights reserved".

Oh, so many unrelated formatting changes! - I'm afraid I missed something.

@@ -1,5 +1,5 @@
//
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) Microsoft Corporation. All Rights Reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rights Reserved -> rights reserved.

I see some files has the inconsistency.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll replace them all

@@ -295,12 +295,12 @@ protected override void ProcessRecord()
else
{
// we write null out because:
// PS C:\> �$null | ForEach-object {$_.aa} | ForEach-Object {$_ + 3}�
// PS C:\> �$null | ForEach-object {$_.aa} | ForEach-Object {$_ + 3}�
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, @SteveL-MSFT please review the whole file - unicode chars?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix and replace the 'fancy quote' with a 'regular quote' character

@@ -585,7 +585,7 @@ private string FindHelpFile(CmdletInfo cmdletInfo)
// e.g., <AssemblyName>.ni.dll as supposed to <AssemblyName>.dll.

// When cmdlet metadata is generated for the 'HelpFile' field, we use the name assembly and we append '-Help.xml' to it.
// Because of this, if the cmdlet is part of an N�gen assembly, then 'HelpFile' field will be pointing to a help file which does not exist.
// Because of this, if the cmdlet is part of an N�gen assembly, then 'HelpFile' field will be pointing to a help file which does not exist.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unicode char?

@@ -604,7 +604,7 @@ private string FindHelpFile(CmdletInfo cmdletInfo)
if (String.IsNullOrEmpty(location))
{
// If the help file could not be found, then it is possible that the actual assembly name is something like
// <Name>.ni.dll, e.g., MyAssembly.ni.dll, so let�s try to find the original help file in the cmdlet metadata.
// <Name>.ni.dll, e.g., MyAssembly.ni.dll, so let�s try to find the original help file in the cmdlet metadata.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unicode char?

/// The duration for which PowerShell should wait before it times out on cancel operations
/// (close runspace or stop powershell). For instance, when the user hits ctrl-C,
/// New-PSSession cmdlet tries to call a stop on all remote runspaces which are in the Opening state.
/// The user wouldn�t mind waiting for 15 seconds, but this should be time bound and of a shorter duration.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unicode char?

/// stop on all remote runspaces which are in the Opening state. The user
/// wouldn�t mind waiting for 15 seconds, but this should be time bound and of a
/// stop on all remote runspaces which are in the Opening state. The user
/// wouldn�t mind waiting for 15 seconds, but this should be time bound and of a
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unicode char?

@SteveL-MSFT SteveL-MSFT force-pushed the copyright branch 2 times, most recently from ed386da to f47fb18 Compare October 26, 2017 04:16
@SteveL-MSFT
Copy link
Member Author

Well, this turned out to be a much bigger set of changes than originally anticipated, but @iSazonov I appreciate your attention to detail. I think I got them all and reviewed them with https://github.com/PowerShell/PowerShell/pull/5210/files?w=1

@@ -2,7 +2,7 @@
GUID="1DA87E53-152B-403E-98DC-74D7B4D63D59"
Author="Microsoft Corporation"
CompanyName="Microsoft Corporation"
Copyright="© Microsoft Corporation. All rights reserved."
Copyright="(c) Microsoft Corporation. All rights reserved."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."

@@ -2,7 +2,7 @@
GUID="c61d6278-02a3-4618-ae37-a524d40a7f44 "
Author="Microsoft Corporation"
CompanyName="Microsoft Corporation"
Copyright="© Microsoft Corporation. All rights reserved."
Copyright="(c) Microsoft Corporation. All rights reserved."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."

@@ -2,7 +2,7 @@
GUID="CA046F10-CA64-4740-8FF9-2565DBA61A4F"
Author="Microsoft Corporation"
CompanyName="Microsoft Corporation"
Copyright="© Microsoft Corporation. All rights reserved."
Copyright="(c) Microsoft Corporation. All rights reserved."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."

@@ -2,7 +2,7 @@
GUID="1DA87E53-152B-403E-98DC-74D7B4D63D59"
Author="Microsoft Corporation"
CompanyName="Microsoft Corporation"
Copyright="© Microsoft Corporation. All rights reserved."
Copyright="(c) Microsoft Corporation. All rights reserved."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."

@@ -4,7 +4,7 @@ ModuleVersion = '1.0.0.0'
GUID = '8e362604-2c0b-448f-a414-a6a690a644e2'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Copyright = '© Microsoft Corporation. All rights reserved.'
Copyright = '(c) Microsoft Corporation. All rights reserved.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."

@SteveL-MSFT SteveL-MSFT force-pushed the copyright branch 2 times, most recently from 4ab26f4 to 7c402e2 Compare October 26, 2017 05:04
replaced unicode character representing single quote with a single quote
Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

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

LGTM but I think we need someone else to check line by line because there's changes in code lines in cs files.

@daxian-dbw daxian-dbw merged commit 4bc52d2 into PowerShell:master Oct 26, 2017
@SteveL-MSFT SteveL-MSFT deleted the copyright branch October 26, 2017 22:35
@iSazonov
Copy link
Collaborator

@SteveL-MSFT Many thanks that now we have nice copyright strings!

Please clarify (it seems I already asked):

  1. We have Microsoft Copyright in most files and MIT for the Repo - is there a conflict? CoreFX has MIT copyright in all files and Repo. We have both Microsoft Copyright and MIT in LICENSE.txt and MIT in README.md.
  2. What copyright should we add in new files or shouldn't?

@SteveL-MSFT
Copy link
Member Author

@iSazonov

  1. let me follow-up on that, but I don't think the copyright notice is really necessary
  2. my understanding is that we really don't need to add it to new files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants