Skip to content

Instantly share code, notes, and snippets.

@mainej
Last active October 7, 2020 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mainej/b190d2f138c2b9e2e20a to your computer and use it in GitHub Desktop.
Save mainej/b190d2f138c2b9e2e20a to your computer and use it in GitHub Desktop.
Custom ERB `license_finder` report
#!/usr/bin/env ruby
require 'license_finder'
# See lib/license_finder/core.rb for more configuration options.
# A quiet logger is required when running reports...
lf = LicenseFinder::Core.new(logger: { quiet: true })
# Example ERB template: lib/license_finder/reports/templates/html_report.erb
template = Pathname.new("path/to/your/template.erb")
print LicenseFinder::ErbReport
.new(lf.acknowledged, project_name: lf.project_name)
.to_s(template)
@timhughes
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment