* the current GPL 2 and 3 templates are incorrect on two counts:
1. the headers make a reference to the Lesser GPL instead of the GPL
2. the texts are incomplete and truncated: including a partial GPL
is as good as not including it at all from a GPL standpoint.
* this patch corrects the header templates and also removes nice but
not needed templating of appName.
* it also ensure the full text of the GPL licenses. Both header and
texts are copied verbatim from these URLs (with a minor change:
backticks have been replaced with single quotes to work around
escaping limitations on golang raw strings that are
backtick-delimited and do not accept escaping):
https://www.gnu.org/licenses/gpl-3.0.txthttps://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Refactoring code that unnecessarily declares a map before making it.
* Cleaning up gpl3 formatting to match other licenses.
* Adding functionality that allows specifying custom license header
and text in cobra config.
* Using license header and text as templates so that they can use
template variables (for custom and gpl3 licenses).
* Adding ability to specify no license.
* Adding custom license example to README.
* Moving final return outside of if-else
* Removing type declarations that Go can infer from values
* Cleaning up some existing comments
* Changing snake_case variables to camelCase