Aplicar Pint e formatação de frontend; delimitar o âmbito do lint
Só formatação automática (pint, vp check --fix), sem alterar comportamento. Excluídos da formatação os registos e artefactos com bytes fixos: docs/, integrations/, storage/, tmp/, output/, resources/data/, tests/Fixtures/, compras-release.json e AGENTS*.md. Scripts operacionais, integrations e auxiliares de teste ficam fora do lint (usam new Function; limpeza na fase 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,11 +4,19 @@ import { spawnSync } from 'node:child_process';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
if (process.argv.length !== 3 || process.argv[2] !== '--read-only') {
|
||||
throw new Error('Use --read-only for in-process GET checks with existing pilot actors.');
|
||||
throw new Error(
|
||||
'Use --read-only for in-process GET checks with existing pilot actors.',
|
||||
);
|
||||
}
|
||||
const root = fileURLToPath(new URL('../', import.meta.url));
|
||||
const result = spawnSync('php', ['scripts/check-standalone-pilot-profiles.php', '--read-only'], {
|
||||
cwd: root, stdio: 'inherit', windowsHide: true,
|
||||
});
|
||||
const result = spawnSync(
|
||||
'php',
|
||||
['scripts/check-standalone-pilot-profiles.php', '--read-only'],
|
||||
{
|
||||
cwd: root,
|
||||
stdio: 'inherit',
|
||||
windowsHide: true,
|
||||
},
|
||||
);
|
||||
if (result.error) throw result.error;
|
||||
process.exitCode = result.status ?? 1;
|
||||
|
||||
Reference in New Issue
Block a user