diff options
| author | mo khan <mo.khan@gmail.com> | 2019-10-29 18:37:46 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-10-29 18:37:46 -0600 |
| commit | f9dc40152a4453f9a02ece91c6291c0cc87bd68f (patch) | |
| tree | 41b987bbcf1a9d54f9394c037d60c5328ae628cf | |
| parent | e731e3570cce4a73aa2c17009c92587e6b3dd4c6 (diff) | |
Add instructions on how to contribute new mappings
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | lib/license/management/repository.rb | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -128,3 +128,6 @@ Please check the [Release Process documentation](https://gitlab.com/gitlab-org/s # Contributing If you want to help, read the [contribution guidelines](CONTRIBUTING.md). + +If an unknown license is detected, please consider updating the mapping defined +in [normalized-licenses.yml](https://gitlab.com/gitlab-org/security-products/license-management/blob/master/normalized-licenses.yml). A mapping can be for a detected name or url and must correspond to an SDPX identifier found in [spdx-licenses.json](https://gitlab.com/gitlab-org/security-products/license-management/blob/master/spdx-licenses.json). diff --git a/lib/license/management/repository.rb b/lib/license/management/repository.rb index ed2519f..9490af2 100644 --- a/lib/license/management/repository.rb +++ b/lib/license/management/repository.rb @@ -60,7 +60,7 @@ module License end def generate_item_for(license) - log_info("detected unknown license named `#{license.send(:short_name)}`:`#{license.url}`") + log_info("Detected unknown license `#{license.send(:short_name)}`. Contribute to https://gitlab.com/gitlab-org/security-products/license-management#contributing.") name = take_first_line_from(license.name) { 'id' => name.downcase, |
