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

Option to only check production dependencies #1

Open
func0der opened this issue Aug 19, 2024 · 1 comment
Open

Option to only check production dependencies #1

func0der opened this issue Aug 19, 2024 · 1 comment

Comments

@func0der
Copy link

I was wondering if there should be a --production flag (or similar) to only check require and not require-dev.

In many cases you can use software locally, but not distribute it with your application without using the same license etc.
So it would be totally fine to have dev dependencies with those licenses, since one would (probably) not ship with them.

The option would live on the same level as enforce in the composer.json.

What do you think about that?

@arokettu
Copy link
Owner

A good suggestion but, well, it would be trivial for licenses:scan but the actual enforcement logic happens at a stage when the code doesn't know what package is dev and what is not. If it is possible it requires hooking to a different event and a major rewrite as a result

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

No branches or pull requests

2 participants