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:
@@ -37,7 +37,9 @@ function updateFixture(string $original, array $manifest, bool $native = false):
|
||||
}
|
||||
copy($original.'/composer.json', $root.'/composer.json');
|
||||
copy($original.'/artisan', $root.'/artisan');
|
||||
if (!is_dir($root.'/public')) mkdir($root.'/public', 0700, true);
|
||||
if (! is_dir($root.'/public')) {
|
||||
mkdir($root.'/public', 0700, true);
|
||||
}
|
||||
copy($original.'/public/index.php', $root.'/public/index.php');
|
||||
} else {
|
||||
foreach ($manifest['host_overlays'] as $file => $values) {
|
||||
@@ -49,9 +51,11 @@ function updateFixture(string $original, array $manifest, bool $native = false):
|
||||
// Frontend overlays are existing host files too; preserve their exact baseline
|
||||
// in native copies without sharing mutable assets with the real destination.
|
||||
foreach ($manifest['host_overlays'] as $file => $values) {
|
||||
if (!is_file($root.'/'.$file)) {
|
||||
if (!is_dir(dirname($root.'/'.$file))) mkdir(dirname($root.'/'.$file),0700,true);
|
||||
copy($original.'/'.$file,$root.'/'.$file);
|
||||
if (! is_file($root.'/'.$file)) {
|
||||
if (! is_dir(dirname($root.'/'.$file))) {
|
||||
mkdir(dirname($root.'/'.$file), 0700, true);
|
||||
}
|
||||
copy($original.'/'.$file, $root.'/'.$file);
|
||||
}
|
||||
}
|
||||
foreach (['bootstrap/cache', 'packages/purchasing', 'storage/framework/views', 'storage/framework/cache', 'storage/framework/sessions', 'storage/logs'] as $directory) {
|
||||
@@ -59,8 +63,8 @@ function updateFixture(string $original, array $manifest, bool $native = false):
|
||||
mkdir($root.'/'.$directory, 0700, true);
|
||||
}
|
||||
}
|
||||
copy($original.'/packages/purchasing/current.json',$root.'/packages/purchasing/current.json');
|
||||
file_put_contents($root.'/storage/framework/down','{"status":503}');
|
||||
copy($original.'/packages/purchasing/current.json', $root.'/packages/purchasing/current.json');
|
||||
file_put_contents($root.'/storage/framework/down', '{"status":503}');
|
||||
|
||||
return $root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user