You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<description>Base PHPCS configuration for IDE integration using 10up-Default ruleset. Extended project-specific config lives in phpcs.xml.dist.</description>
2
+
<rulesetname="Tour Operator">
3
+
<description>Minimal PHPCS configuration for IDE integration using 10up-Default ruleset. Extended project-specific config lives in phpcs.xml.dist.</description>
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,13 +69,14 @@ Override the PHP compatibility test version (example: PHP 7.2+):
69
69
70
70
### Continuous Integration
71
71
72
-
PHPCS runs automatically on pushes to `2.1-trunk` and all pull requests via the GitHub Action workflow at `.github/workflows/phpcs.yml` using the version specified in that workflow file (currently `10up/wpcs-action@v2.0.0`—please keep this in sync with the workflow).
72
+
WPCS runs automatically on pushes to `2.1-trunk` and all pull requests via the GitHub Action workflow at `.github/workflows/phpcs.yml` using `10up/wpcs-action@stable`with local configuration.
73
73
74
74
The workflow:
75
75
76
76
1. Installs Composer + Node dependencies.
77
-
2. Runs PHPCS with annotations on the PR (errors & warnings surfaced inline).
78
-
3. Uploads a report artifact when available.
77
+
2. Runs WPCS with local config (`phpcs.xml.dist`) and annotations on the PR.
78
+
3. Checks only changed files for efficiency and enables warnings.
79
+
4. Uses the 10up-Default ruleset with project-specific customizations.
79
80
80
81
### Project Management Automation
81
82
@@ -133,6 +134,20 @@ Use the WordPress action directly in a workflow step:
133
134
134
135
You can scope events (`pull_request`, `issues`) and extend with additional job steps (e.g. changelog validation, label enforcement).
135
136
137
+
### EditorConfig & Code Style
138
+
139
+
This plugin follows WordPress Coding Standards with consistent indentation enforced via `.editorconfig`:
If your IDE does not detect the `10up-Default` ruleset, it will fall back to `.phpcs.xml.dist`. Make sure your PHPCS extension/binary points to `vendor/bin/phpcs`.
0 commit comments