Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional config for ignoring "unresolvable licence" #28

Open
jonasps opened this issue Mar 4, 2024 · 0 comments
Open

Additional config for ignoring "unresolvable licence" #28

jonasps opened this issue Mar 4, 2024 · 0 comments

Comments

@jonasps
Copy link

jonasps commented Mar 4, 2024

Hello and thank you for your work with lichen!

I’m currently in need of running lichen in environments where a substantial amount of "unresolvable licence" errors can happen (running it as part of a tool for other developers to use at my company). In my case returning an empty licence is a much better default than returning an error. And there might be others with similar needs so I suggest we add a config for this?

I have two different suggestions for additional configs:

A:

ignoreUnresolvableLicense: true
Would result in ´func ignoreUnresolvable()´ always returning true.

Or B:

unresolvableLicense:
 - regex: true 
 - path: "github.com/test/.*"

regex: true would result in unresolvableLicense's path beeing a regular expression.

Which of these suggestions would be best for lichen?

I can create a PR with this if you wan't to test it in practice, the additional code will be short.

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

No branches or pull requests

1 participant