Add vendor license checks to PR (#744)

* Add vendor license checks to PR

This PR aims to add automatic detection of licenses of vendor-ed packages for every PR raised
to the Odo repository using a tool called [wwhrd](https://github.com/frapposelli/wwhrd) that
iterates on every vendored package, searches for the license file, detects the license type
and validates the detected license type against the different sections of the configuration
file .wwhrd.yml.

fixes #743
Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate comments from @surajnarwade

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @tkral Comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Add documentation about the license checks

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @codeclimate comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @cdrage comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incoporate @cdrage and @kadel comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>

* Incorporate @cdrage comments

Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>
This commit is contained in:
anmolbabu
2018-10-03 21:00:12 +05:30
committed by Charlie Drage
parent 3c4493547d
commit ea174cb57b
3 changed files with 41 additions and 1 deletions

17
.wwhrd.yml Normal file
View File

@@ -0,0 +1,17 @@
---
blacklist:
# https://www.apache.org/licenses/GPL-compatibility.html
- GPL-2.0
whitelist:
- Apache-2.0
- MIT
- NewBSD
- FreeBSD
- ISC
exceptions:
# wwhrd currently does not detect ISC which is compatible with Odo so, add it under exceptions to avoid errors due to it being not recognised
- github.com/davecgh/go-spew/spew/...
# wwhrd currently does not detect ISC which is compatible with Odo so, add it under exceptions to avoid errors due to it being not recognised
- github.com/olekukonko/tablewriter