-
-
Notifications
You must be signed in to change notification settings - Fork 17
Introduce ComposerRequireChecker #50
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
Introduce ComposerRequireChecker #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can automatically add this based on just having a composer.json
present, and if the tool is not installed, the check will fail in that case.
This should act like the other checks, and only run if the configuration file for the composer require checker is present, as there's a reasonable assumption at that point that it's a package requirement of some sort.
Hi @weierophinney thanks the review
I was thinking about a global install of |
I do feel uncomfortable on this as well. This could be done by adding the composer-require-checker via phive or a global composer requirement to the container (as it is done for WDYT? |
Having |
You are referring to the Another point for doing this opt-in would be that there is actually no such "default configuration file name" behavior as we have for psalm, phpunit, infection, e.g. So you have to call {
"composer_require_checker": {
"config": "path/to/config.json"
}
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So don't get me wrong, I am neither against this feature nor against the fact that laminas-validator
should either require laminas-db
or the other way around while moving the validator to laminas-db
.
But as laminas components did not work like this in the past, enabling this by-default would be a huge no-go for me. I like the recent implementation tho (which checks for the presence of a config file) - I've just a few nitpicks.
…r `composer-require-checker.json` is available Signed-off-by: Benjamin Fahl <[email protected]>
Signed-off-by: Benjamin Fahl <[email protected]>
Signed-off-by: Benjamin Fahl <[email protected]>
Signed-off-by: Benjamin Fahl <[email protected]>
Signed-off-by: Benjamin Fahl <[email protected]>
Signed-off-by: Maximilian Bösing <[email protected]>
Signed-off-by: Maximilian Bösing <[email protected]>
Just for future readingsEven tho, this is an opinionated implementation (because we enforce projects to create/rename a missing/existing |
Description
Add
maglnet/ComposerRequireChecker
check when "code_checks" are requiredsrc/create-jobs.js