Problem/Motivation
There are several issues in core about making the use of the \ in namespaces consistent in core. Some of the work in those issues overlaps each other.
#3144809: PHPCS rule for consistent usage of '\Drupal'
#2859992: [PP-1] Consistent use of leading \ for class names in *.api.php files
#2912687: [PP-1] Consistent use of leading \ for class names in comments
#3082854: [PP-1] Consistently use \Drupal::foo() instead of Drupal::foo()
#3089634: missing initial backslash on parameter interface typehints in entity.api.php
#3123593: [PP-1] Class names in *.services.yml inconsistently use leading \
Steps to reproduce
Proposed resolution
Create a meta to separate the work into clearly defined manageable pieces. Mark all as postponed on #3054969: Add sniff for \Drupal vs Drupal.
Comments
Comment #2
quietone commentedComment #3
quietone commentedHaven't found any more issue about the lead back slash.
Comment #4
quietone commentedMissed this one, #3144809: PHPCS rule for consistent usage of '\Drupal'
Comment #5
atul4drupal commented@quietone Nice work in putting the pieces together :) this should help address the issue.
Comment #11
quietone commentedComment #12
quietone commentedComment #13
quietone commented