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:
@@ -1,10 +1,27 @@
|
||||
import fs from 'node:fs/promises';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
const source = await fs.readFile('scripts/supplier-evaluation-check.mjs', 'utf8');
|
||||
const common = source.slice(source.indexOf('const base ='), source.indexOf('const author ='));
|
||||
const proof = JSON.parse(await fs.readFile('docs/proofs/pilot-replenishment-activation.json', 'utf8'));
|
||||
await new Function('fs', 'assert', 'proof', 'return (async()=>{' + common + `
|
||||
const source = await fs.readFile(
|
||||
'scripts/supplier-evaluation-check.mjs',
|
||||
'utf8',
|
||||
);
|
||||
const common = source.slice(
|
||||
source.indexOf('const base ='),
|
||||
source.indexOf('const author ='),
|
||||
);
|
||||
const proof = JSON.parse(
|
||||
await fs.readFile(
|
||||
'docs/proofs/pilot-replenishment-activation.json',
|
||||
'utf8',
|
||||
),
|
||||
);
|
||||
await new Function(
|
||||
'fs',
|
||||
'assert',
|
||||
'proof',
|
||||
'return (async()=>{' +
|
||||
common +
|
||||
`
|
||||
assert.equal(proof.result, 'applied');
|
||||
const requester = client(); await requester.enter('requester');
|
||||
assert.equal((await requester.request('/contexto','POST',{area:'procurement',option:'procurement.internal'})).status,302);
|
||||
@@ -32,4 +49,6 @@ await new Function('fs', 'assert', 'proof', 'return (async()=>{' + common + `
|
||||
automatic_source_reused:true,physical_milli:row.physical_milli,free_milli:row.free_milli,checks,
|
||||
business_commands:false,accounts_or_grants_changed:false,sgf_installation_changed:false,visual_review:false},null,2));
|
||||
console.log('Rascunho, origem da reposicao, tarefas, competencias e saldo confirmados por HTTP.');
|
||||
` + '})()')(fs, assert, proof);
|
||||
` +
|
||||
'})()',
|
||||
)(fs, assert, proof);
|
||||
|
||||
Reference in New Issue
Block a user