-
Notifications
You must be signed in to change notification settings - Fork 2.4k
PHP: Better support for older drupal codebases. #778
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestparsing/qualityGraph extraction bugs, false positives, missing edgesGraph extraction bugs, false positives, missing edgespriority/normalStandard review queue; useful PR with ordinary maintainer urgency.Standard review queue; useful PR with ordinary maintainer urgency.
Milestone
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestparsing/qualityGraph extraction bugs, false positives, missing edgesGraph extraction bugs, false positives, missing edgespriority/normalStandard review queue; useful PR with ordinary maintainer urgency.Standard review queue; useful PR with ordinary maintainer urgency.
What problem does this solve?
Right now PHP support only seems to look for files with PHP extension.
We are working on an old codebase that are evaluating to migrate (Drupal 6 to Drupal 11).
But there are different extensions that Drupal 6 use (
.inc,.install,.modulebesides the .php). Not sure if there's a way to customize the files that should be read somewhere.There's also the convention by names (hooks). For instance Drupal has the
hook_form_alterorhook_form_FORM_ID_alter()which get called by functions such asmodule_invoke_allordrupal_alter.Proposed solution
Provide a way to extend the file extension types that are read per code language.
Alternatives considered
No response
Confirmations