Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Fix copyright headers #1860

Closed
wants to merge 1 commit into from
Closed

Conversation

niveditc
Copy link
Contributor

@niveditc niveditc commented Sep 9, 2018

Summary
The open source checkup tool told us that we were missing copyright headers on some files. I also found out that the recommendation is now to remove the date from these headers, so updated existing files via codemod.

> codemod -m --extensions js -d src 'Copyright \(c\) 2013\-present, Facebook, Inc\.. \* All rights reserved\.' 'Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.'

Test Plan
None

@cdelahousse
Copy link

Nice. Looks good to me.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

niveditc is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@marcelometal
Copy link
Contributor

Hi @niveditc, Why remove year from copyright notice?

facebook-github-bot pushed a commit that referenced this pull request Jan 3, 2019
…1964)

Summary:
**Summary**

This PR follows up work started by niveditc on #1860 and suspended because of limitations with tooling. Let's give it another try.

- Remove all copyright years
- Correct copyright headers under `website/` referencing the MIT license
- Inline `All rights reserved.` on the same line of the copyright
- Fixes copyright headers of examples incorrectly using headers for source files

The PR also normalizes copyright headers to BSD with patents grant, as some files were later added with the newest MIT license applied to React and other OSS projects. We should discuss the switch to MIT for Draft.js as well.

**Test Plan**

Manual inspection of files + `yarn lint`
Pull Request resolved: #1964

Differential Revision: D13562427

fbshipit-source-id: 6a15d29ff56a6340ee2a0f13f278b207f1761d28
@claudiopro
Copy link
Contributor

Superseded by #1964.

@claudiopro claudiopro closed this Jan 3, 2019
jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
…acebookarchive#1964)

Summary:
**Summary**

This PR follows up work started by niveditc on facebookarchive#1860 and suspended because of limitations with tooling. Let's give it another try.

- Remove all copyright years
- Correct copyright headers under `website/` referencing the MIT license
- Inline `All rights reserved.` on the same line of the copyright
- Fixes copyright headers of examples incorrectly using headers for source files

The PR also normalizes copyright headers to BSD with patents grant, as some files were later added with the newest MIT license applied to React and other OSS projects. We should discuss the switch to MIT for Draft.js as well.

**Test Plan**

Manual inspection of files + `yarn lint`
Pull Request resolved: facebookarchive#1964

Differential Revision: D13562427

fbshipit-source-id: 6a15d29ff56a6340ee2a0f13f278b207f1761d28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants