config: add phpcs.xml to exclude class-naming convention sniff

Created phpcs.xml ruleset that inherits from WordPress-Core but excludes
WordPress.Files.FileName.InvalidClassFileName sniff. This is an architectural
choice: PRAutoBlogger uses short class names (class-logger.php) instead of
fully-qualified names (class-prautoblogger-logger.php) for better readability.

Updated CI workflow to use phpcs.xml instead of --standard=WordPress-Core.
Remaining violations (56 wpdb + 2 docblock) are still addressed with inline
phpcs:ignore pragmas with documented reasons.
This commit is contained in:
peptiderepo
2026-04-23 03:27:55 +00:00
parent 0e1551be42
commit 26059e7f12
2 changed files with 18 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ jobs:
"phpcsstandards/phpcsextra:^1.0"
- name: Run PHPCS
run: |
phpcs --standard=WordPress-Core \
phpcs --standard=phpcs.xml \
--extensions=php \
--ignore=vendor/*,tests/*,node_modules/* \
--warning-severity=0 \