-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://github.com/PowerShell/PowerShell/pull/5210/files?w=1 can be use to hide the whitespace only changes. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo. Please revert "Copyright = ".
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.' |
There was a problem hiding this comment.
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.' |
There was a problem hiding this comment.
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.
tools/packaging/packaging.psd1
Outdated
@@ -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." |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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."
abfcda3
to
78feb29
Compare
78feb29
to
fa9a3d8
Compare
@iSazonov I think I got all of them. |
There was a problem hiding this 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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}� |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unicode char?
ed386da
to
f47fb18
Compare
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 |
f47fb18
to
0ea1015
Compare
@@ -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." |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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.' |
There was a problem hiding this comment.
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."
4ab26f4
to
7c402e2
Compare
replaced unicode character representing single quote with a single quote
7c402e2
to
079596e
Compare
There was a problem hiding this 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.
@SteveL-MSFT Many thanks that now we have nice copyright strings! Please clarify (it seems I already asked):
|
|
Looks like vscode also removed some trailing whitespace
Fix #4917