tomchavakis / nuget-license

.NET Core tool to print or save all the licenses of a project
Apache License 2.0
280 stars 83 forks source link

Excluded license types #180

Closed jcvandan closed 1 year ago

jcvandan commented 1 year ago

Hey! I recently started using this tool, but thought it makes more sense (at least in my situation) to exclude certain high risk licenses than have to specify all allowed licenses as there are thousands of license types. I am using a similar NPM library that allows this, so thought I'd make an attempt at adding the functionality.

I've added a new option --forbidden-license-types that behaves in the same way as --allowed-license-types. I've added test coverage, and updated the readme.

Let me know if you have any concerns. Thanks!

tomchavakis commented 1 year ago

Hi @jcvandan ,

Thank you for your contribution

jcvandan commented 1 year ago

@tomchavakis No worries, I just updated our pipeline to use the new option in the latest release and all looks good. If you encounter any issues let me know and I will fix them.

tomchavakis commented 1 year ago

@jcvandan thank you for the confirmation that everything is fine on your end.