mglaman / drupal-check

Check Drupal code for deprecations and discover bugs via static analysis
GNU General Public License v2.0
331 stars 67 forks source link

Multisite usage #90

Open dabblela opened 5 years ago

dabblela commented 5 years ago

I suspect this may be a limitation of drupal-finder, but is there any way to use this tool in a multisite setup? I have a modules directory within each site directory, but only modules in "default" can be checked (others get the "autoloading is probably not configured properly" error).

mglaman commented 5 years ago

That is because mglaman/phpstan-drupal does not inspect those directories. We would need some way to change the "current" site. We'll need to open a reference issue there.