Problem/Motivation
Drupal core is developing its own phpcs.xml.dist file at https://git.drupalcode.org/project/drupal/-/blob/11.x/core/phpcs.xml.dis...
Some sniffs have been adopted there that are missing in Coder.
Proposed resolution
- Go through core's phpcs.xml.dist file, compare it with ruleset.xml for the Drupal standard in Coder
- Add any missing sniffs to Coder
- Change core's phpcs.xml.dist file to depend on Coder, only having exceptions there that core does not support yet. Planned to be done in #3135935: Keep all sniffs in phpcs.xml.dist in sync with the locked version of Coder
Remaining tasks
Fix Coder, fix phpcs.xml.dist in core in #3135935: Keep all sniffs in phpcs.xml.dist in sync with the locked version of Coder.
Comments
Comment #3
klausiMissing EmptyPHPStatement found, added in https://github.com/pfrenssen/coder/pull/250
Comment #4
klausiAdapted the PropertyDeclaration sniff and directly use it from PSR-2 https://github.com/pfrenssen/coder/pull/251 (sorry did not put the correct issue number in the git log).
Comment #6
klausiCore issue already exists: #3135935: Keep all sniffs in phpcs.xml.dist in sync with the locked version of Coder.
Otherwise I'm done here, we are in sync again.