Repository navigation
Commit 8d50385
committed
Keep the scoping build scripts within the code quality checks
The static analysis config lints everything under `utils`, so the new
build scripts need the same treatment the existing ones already get.
* Exempt them from the two WordPress-context sniffs `make-phar.php` is
already exempt from; they are procedural stand-alone scripts that never
run inside WordPress.
* Exclude `utils/scoper/scoper.inc.php` from PHPStan. It is an isolated
toolchain with its own composer.json, so the classes it references are
not installed in this project's vendor directory.
* Swap `str_contains()` for `strpos()`. The script refuses to run below
PHP 8.2, but phpcs checks this repository against a 7.2 baseline and
flags the newer function.
Refs wp-cli/wp-cli#5920
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RHtjyXkZh8X16sBgmidSQi1 parent b457650 commit 8d50385
3 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
290 | 293 | | |
291 | 294 | | |
292 | 295 | | |
| |||
0 commit comments