Problem/Motivation

The css_usage_analyzer.settings config object ships with no schema definition. Running drush config:inspect --detail --only-error after enabling the module surfaces:

----------------------------- ----------- ------------- ------ 
  Key                           Status      Validatable   Data  
 ----------------------------- ----------- ------------- ------ 
  css_usage_analyzer.settings   No schema                       
 ----------------------------- ----------- ------------- ------ 

Steps to reproduce

  1. Install Drupal 11.3.12.
  2. Run: drush en -y css_usage_analyzer
  3. Run: drush config:inspect --detail --only-error

Expected

No errors. css_usage_analyzer.settings should be listed with a valid schema status

Actual

----------------------------- ----------- ------------- ------ 
  Key                           Status      Validatable   Data  
 ----------------------------- ----------- ------------- ------ 
  css_usage_analyzer.settings   No schema                       
 ----------------------------- ----------- ------------- ------ 

Proposed resolution

Add config/schema/css_usage_analyzer.schema.yml to the module with a mapping that covers all keys written to css_usage_analyzer.settings.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dkmishra created an issue. See original summary.

dkmishra’s picture

Status: Active » Needs review
schillerm’s picture

Status: Needs review » Reviewed & tested by the community

Hi, I just tested and reviewed this MR. Works as expected, no errors showing for css_usage_analyzer.settings. Code/yml changes are straight forward and make sense to me. Moving to RTBC.