jpeddicord / askalono

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

Default file name for crawl #65

Closed dd-jy closed 3 years ago

dd-jy commented 3 years ago

Hi!

I want to know the default file name lists for crawl. When testing, it seems to be file names that includes LICENSE, COPYING, NOTICE. I tried to find it in the source code, I couldn't see it. Can you help me?

jpeddicord commented 3 years ago

The default names come from the ignore crate, which is a part of ripgrep:

https://github.com/BurntSushi/ripgrep/blob/master/crates/ignore/src/default_types.rs#L96-L122

To use a different pattern on the command line, you can pass --glob to change what matches.

dd-jy commented 3 years ago

Thanks for the quick reply! It was very helpful to me. 😄