Support Static Code Analysis Without Site Installation

Created on 10 March 2025, 3 months ago

Problem/Motivation

The module currently requires a full Drupal site installation to function, which is unnecessary for static code analysis.

Steps to reproduce

Attempt to run:
drush clean_code:generate-install
Notice that it doesn't work without the installation:
Command clean_code:generate-install was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log messages.

Proposed resolution

Allow the module to operate on static files without a full site installation. This change would enable Drush to function like the drush site-install command, which doesn't require installation. It would also simplify CI processes by supporting static analysis without setting up a complete Drupal environment.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇴Colombia davidlfg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @davidlfg
  • 🇸🇦Saudi Arabia mesharideb

    You’re absolutely right. Supporting static analysis has been in the plan since early on, just haven’t had the time to get to it yet. Appreciate you flagging it! Definitely something I’ll tackle soon

Production build 0.71.5 2024