-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fixes #3386 to add drupal check for deprecated module / theme code. #3710
Conversation
8138f56
to
2c2ac44
Compare
Sample Output from the Govcon repository:
|
@nateacquia are you okay with this as a new feature for BLT? I think it's worthwhile, we've gotten a few requests for deprecation scanning over the last year. But if we merge it we own it. The alternatives would be to provide it as a plugin, or reject it. Making it a plugin would probably require some additional refactoring of the validation system to make it pluggable. |
in fairness, there isn't much to "own" (since we're literally just running the drupal-check command) but point taken :) |
we do need to decide if this is going in:
in either way it can be easily overridden. i'm leaning towards opted out by default (which is how this PR is structured). |
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.
Looks good to me. I think opt-in is good for now, maybe opt-out as part of the next major release.
Note that this adds an additional 17 composer dependencies (BLT already has about 250).
@nateacquia I think this is worth it but let me know if you approve.
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.
This works for me!
Fixes #3386
Changes proposed
(What are you proposing we change? How does this impact end users? Are manual or automatic updates required?)
tests:deprecated:modules
commandtests:deprecated:themes
commandblt validate
command to check modules and themes for deprecated code ifvalidate.deprecation
values are overridden in blt.yml.Steps to replicate the issue
Additional details
This is now possible thanks to work being performed in mglaman/drupal-check#68