pivotal / LicenseFinder

Find licenses for your project's dependencies.
MIT License
1.72k stars 339 forks source link

--recursive and --format=html does not work #256

Open timolehto opened 7 years ago

timolehto commented 7 years ago

It seems strange limitation that this doesn't work and this limitation is not documented anywhere. However after digging in to the code it is pretty obvious as the MergedReport extends the CsvReport, so obviously the output will be a csv report regardless of what format option you may have provided.

https://github.com/pivotal/LicenseFinder/blob/master/lib/license_finder/reports/merged_report.rb

matcornic commented 7 years ago

MergeReport is indeed called when using either --recursive or --subprojects : https://github.com/pivotal/LicenseFinder/blob/98d0f6e68cc6e73858e64d63f3c4d04118163506/lib/license_finder/cli/main.rb#L73