mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 15:05:09 +01:00
52ee93b3c4
`GitHubRemote::artifactSize()` passes `select(.name === "…")` to
`gh api --jq`. jq has no `===` operator: gh's embedded jq rejects the
filter ("unexpected token"), so the lookup always fails and the baseline
download never shows its size.
The filter used `==` while it lived in `BaselineSync`, which the strict
arch preset ignores. #1841 moved it into `GitHubRemote`, where the preset
flags the `==` inside the jq string. Restore `==` and ignore
`GitHubRemote` in the strict preset, as `BaselineSync` already is.
40 lines
768 B
PHP
40 lines
768 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Pest\Expectation;
|
|
use Pest\Plugins\Tia\Baselines\GitHubRemote;
|
|
use Pest\Plugins\Tia\BaselineSync;
|
|
|
|
arch()->preset()->php()->ignoring([
|
|
Expectation::class,
|
|
'debug_backtrace',
|
|
'var_export',
|
|
'xdebug_info',
|
|
'xdebug_start_code_coverage',
|
|
'xdebug_stop_code_coverage',
|
|
'xdebug_get_code_coverage',
|
|
]);
|
|
|
|
arch()->preset()->strict()->ignoring([
|
|
BaselineSync::class,
|
|
GitHubRemote::class,
|
|
'usleep',
|
|
]);
|
|
|
|
arch()->preset()->security()->ignoring([
|
|
'eval',
|
|
'str_shuffle',
|
|
'exec',
|
|
'md5',
|
|
'unserialize',
|
|
'uniqid',
|
|
'extract',
|
|
'assert',
|
|
]);
|
|
|
|
arch('globals')
|
|
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
|
->not->toBeUsed()
|
|
->ignoring(Expectation::class);
|