jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
256 stars 25 forks source link

Implement the --optimize flag in crawl mode #39

Closed eclipseo closed 2 years ago

eclipseo commented 5 years ago

Signed-off-by: Robert-André Mauchin zebob.m@gmail.com

Issue #, if available: Issue #27

Description of changes: Add the optimize flag to crawl mode

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

We may be interested in replacing our Perl script called licensecheck (https://metacpan.org/pod/App::Licensecheck) with askalono in our package review tool. Currently licensecheck detect license header in various files, it would be great for askalono to support it in crawl mode too.

jpeddicord commented 5 years ago

Sorry for the slow reply! I want to try to consider this functionality a bit, because adding a flag now implies that behavior being "stable" here on out when it's still a bit in flux.

For example, should Optimize imply a certain scanning mode, should it imply only optimizing on one file, what kinds of results should it return, etc.