-
Notifications
You must be signed in to change notification settings - Fork 234
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
Conversation
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.
ad30829
to
f795e6e
Compare
f795e6e
to
2449543
Compare
@rjmholt We should consider adding an automated check for this (and replacing some of our tools/scripts). |
I checked with
|
@@ -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) |
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.
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.
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.
Resolves #1465
Also double-checked that all
*.cs
and*.ps1
files have a copyright notice.