Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291715

Quote consistency in .info.yml files for Core modules

$
0
0

Problem/Motivation

While evaluating and researching core modules, it was noticed that are a few inconsistencies in .info.yml files, specifically, the use of single and double quotes around titles and descriptions.

Analysis:

Modules with one word titles (with no quotes): 41
Modules with one word titles (with single quotes): 2
Modules with multiple word titles (with single quotes): 22
Modules with multiple word titles (with no quotes): 9
Description (with single quotes): 67
Description (with no quotes): 3
Description (with double quotes): 1

Proposed resolution

Update modules to have the following:

  • Modules with one word title should use no quotes around the title.
  • Modules with multiple word title should use single quotes around the title.
  • Module descriptions should use single quotes around the description.

I am choosing this route because it seems most modules align to this pattern, and I would like to propose to keep it consistent.

Remaining tasks

  1. Create patch
  2. Review patch
  3. Write tests to prevent issue from occurring in the future as new or experimental modules are added to core.
  4. Edit Drupal documentation pages to explain standards.

User interface changes

None

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 291715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>