Improve LICENSE + copyright information & CONTRIBUTING file #2556
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Replace LICENSE text file with the official Apache one: https://www.apache.org/licenses/LICENSE-2.0.txt. This changes
Copyright (C) 2021 Mandiant, Inc.
by the following template language that had been incorrectly replaced:Copyright [yyyy] [name of copyright owner]
Improve CLA information to adhere to Google policies (one needed sentence was missing).
Use Google's default Code of Conduct for consistency with other Google's projects.
Replace the header from source code files. The old header had the confusing sentence
All rights reserved
, which does not make sense for an open source license. Replace the header by the default Google header that corrects this issue and keep capa consistent with other Google projects. Also replace also the copyright text in theweb/public/index.html
file for consistency and adapt the linter to work with the new header. The changes in the copyright header have been made with the following script:Some files had the copyright headers inside a
"""
comment and needed manual changes before applying the script.hook-vivisect.py
andpyinstaller.spec
didn't include the license in the header and also needed manual changes.Add missing headers to the source code files inside the
web
directory and thecapa/render/proto/capa.proto
file. I have used addlicense to add the headers. I think it would be a good idea to use addlicense as linter in this project, but I think we should wait until the following issues are resolved (and ensure there are no other issues): Ignore empty files google/addlicense#162, Support spec files google/addlicense#163. I can open an issue after this PR has been merged to propose using addlicense as linter.Related PRs in other Mandiant repositories: mandiant/flare-vm#638, mandiant/VM-Packages#1238
Checklist