Open InfoSec812 opened 6 years ago
@InfoSec812 can you show an example of how another open source project does this?
@etsauer Lots of projects do it. From my experience, everything owned by ASF or Eclipse Foundation REQUIRES this and more specifically you can look at Apache Camel. https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/AfterPropertiesConfigured.java
Further still, most of the ASF and Eclipse projects I contribute to require that you sign your commits as well.
I will commit to creating a GIT pre-commit hook which can check for and/or insert license headers where needed. In addition, I will test out that pre-commit hook by creating a PR to add license headers to the current infra-anisble, casl-ansible, and openshift-applier.
Pre-commit hook instructions are HERE
We discussed this as part of our weekly CASL call last week and agreed that we will not add the license info to every file. However, we will enforce that each role has the necessary format for documentation, including the license info - as seen here: https://github.com/oybed/infra-ansible/tree/dns-rework7/roles/dns#license
For some clients, having license headers in all files significantly improves the ability for them to approve use of the software.