use consistent (c) for copyright symbol#5210
Conversation
PaulHigin
left a comment
There was a problem hiding this comment.
These are a lot of changes to look at, but it all looks good as far as I can tell.
|
https://github.com/PowerShell/PowerShell/pull/5210/files?w=1 can be use to hide the whitespace only changes. |
| //----------------------------------------------------------------------- | ||
| // <copyright company="Microsoft"> | ||
| // Copyright (C) 2013 Microsoft Corporation | ||
| // Copyright (c) 2013 Microsoft Corporation |
There was a problem hiding this comment.
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.
Yeah, my understanding is that the date doesn't matter. Will update.
| 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.
Typo. Please revert "Copyright = ".
| @@ -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.
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.
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.
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.
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.
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.
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.
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.
Extra spaces.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."
| // | ||
| // Microsoft Windows NT | ||
| // Copyright (C) Microsoft Corporation, 2014. | ||
| // Copyright (c) Microsoft Corporation, 2014. |
There was a problem hiding this comment.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."
| // | ||
| // Microsoft Windows NT | ||
| // Copyright (C) Microsoft Corporation, 2005. | ||
| // Copyright (c) Microsoft Corporation, 2005. |
There was a problem hiding this comment.
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.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."
| // | ||
| // Microsoft Windows NT | ||
| // Copyright (C) Microsoft Corporation, 2008. | ||
| // Copyright (c) Microsoft Corporation, 2008. |
There was a problem hiding this comment.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."
| 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.
Typo. Please revert "Copyright = "
| 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.
Please replace "," with dot.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."
Below too.
tools/packaging/packaging.psd1
Outdated
| 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.
I believe we use common pattern "Copyright (c) Microsoft. All rights reserved."
| <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.
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. |
iSazonov
left a comment
There was a problem hiding this comment.
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.
Rights Reserved -> rights reserved.
I see some files has the inconsistency.
There was a problem hiding this comment.
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.
Ah, @SteveL-MSFT please review the whole file - unicode chars?
There was a problem hiding this comment.
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. | |||
| @@ -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. | |||
| /// 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. |
| /// 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 |
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
There was a problem hiding this comment.
Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."
There was a problem hiding this comment.
Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."
There was a problem hiding this comment.
Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."
There was a problem hiding this comment.
Skipped "Copyright"
Copyright="Copyright (c) Microsoft Corporation. All rights reserved."
There was a problem hiding this comment.
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
iSazonov
left a comment
There was a problem hiding this comment.
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