You are here for one of two reasons. You either want to understand more about the concept of copyrights and how it relates to open source or you want to know what to put in the header of your code before you publish it. If you are here for the latter, skip to the practical content below.

An Overview of Concepts

Copyright is a collection of rights protected by the government that applies to original works of authorship fixed in any tangible medium of expression. These rights ensure the copyright owner can decide who can copy the work. Yet this gets much more complicated.

What if there was no copyright protection? You author a work (i.e. write a novel, compose a song, create an app), and someone wants to use it without your permission. Perhaps the sovereign emperor of the land likes your novel and decides to publish it for you, (maybe without including your name or paying you. Perhaps someone who hacks into your computer decides to share an app you were planning on selling with the world (maybe before you were ready) and make money from it themselves. Technically you still have your property – it was not stolen in the way a car is stolen. Your rights were infringed. Your agency was taken away. Copyright is the set of laws that protect your rights in these situations.

Copyright laws are complicated. It’s best to seek legal advice when it comes to details. This is not legal advice. With that said, you can find information online that helps explain copyright protection as it pertains to your jurisdiction. This page lists rights protected by US copyright laws. For example, someone infringes your copyright if they copy your work to use it, modify it to make a derivative work, and/or distribute it, or the derived work without your consent.

That’s more complicated to address. There are a few carve-outs to note: Copyright does not protect ideas, processes, or concepts. You now see that source code, being protected by copyright, is viewed more as a literary work than a procedure. Copyright does not protect works that are trivial or too small for protection. e.g. No court will protect my claim that I authored the three word phrase “Roses are Red”. Moreover, copyright protection excludes a category of infringement known as fair use where someone copies a small part of your work for use we consider socially acceptable (e.g. including an excerpt in a book review).

When developers want to share their code and get others to use it, modify it, and distribute it, they should make explicit that they are doing this by intent. Why? By default if you say nothing, anyone taking your code is infringing your copyright. You should tell them it’s okay to use and under what conditions. You do that in a license. In a commercial transaction, someone pays you for license rights. In an open source project, you simply declare the license and now everyone will know they can use, modify, and redistribute your code under the license terms you specified.

Open source means different things to different people. From a legal perspective, open source refers to work that is shared under a license that complies with the open source definition as managed by the Open Source Initiative. The open source definition specifies what makes an open source license open. Similarly, the Free Software Foundation manages the free software definition which specifies the “four freedoms” that are sought by the Free Software movement.

Note: There is overlap between free software and open source, hence the acronym FOSS (or F/LOSS: adding libre as a reminder that free in this context refers to liberty, not to the absence of cost). There are differences between the two definitions that they remain distinct.

The Pragmatics

What Should You Put in Your Code

First read the section Prepare your Publication page in this guide. Note: this guidance is for code we write at work. We never remove someone else’s copyright statement. We only add our copyright statements to code we write. Let’s cover four cases:

  1. Existing code that you are not modifying
  2. Existing code that you are modifying
  3. New code that we are publishing
  4. New code that we are not planning to publish

Existing code that you are not modifying

You do not need to change the copyright notice text on code that was already published. The code previously published was marked correctly at the time. We don’t have to change anything about that – in fact it would be incorrect to change it. Copyright statements are not a freshness date, they are more like a timestamp.

Existing code that you are modifying

When modifying one of our existing open source projects, you don’t need to alter the copyright header. You can remove the year since we no longer display years on the copyright line. Don’t add a date range (e.g. 2012-2017).

New code that we are publishing

Power Home Remodeling Group, LLC is the name we use on the copyright header of new projects we publish. When you add a new file to an existing open source project or publish a new project, you’ll add a copyright header to it. New code should have the following text block above to the top of each source code file that was written by employees (and not computer generated).

Copyright Power Home Remodeling Group, LLC
Licensed under the terms of the <SPDX license name> license. See LICENSE file in project root for terms.

New code that we are not publishing

We do not require internal code to include a copyright statement. But it’s a good idea to have one since internal code can become published external code (on purpose or by accident). Having an accurate copyright statement helps. It’s good practice to add a header when creating new files. Also, some IDEs automatically put one in, so please configure it to use the right one.

The header should contain a copyright statement (Copyright Power Home Remodeling Group, LLC) followed by the statement that indicates this is proprietary code (All rights reserved.). In the event we open source that code at a future date, we will then replace the All rights reserved. text with a license indicator that the code is licensed under an open source license (as shown above).

Company code should not list the developer’s name in the copyright notice. The developer is the author of the code, but code written for work is assigned to the company. Your code should only list your name as the copyright holder if you processed a copyright assignment with the SDRT and legal or if we have established an exceptional situation where this makes sense to do. Otherwise the code copyright should declare Power Home Remodeling Group, LLC as the copyright holder. It does not matter if code is published on a personal repo, as the copyright is an attribute of the code, not the repo.


Copyright Power Home Remodeling Group LLC. Copyright Verizon Media. Content licensed under CC-BY-4.0