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,9 +1,20 @@
|
||||
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 ='));
|
||||
await new Function('fs', 'assert', '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 ='),
|
||||
);
|
||||
await new Function(
|
||||
'fs',
|
||||
'assert',
|
||||
'return (async()=>{' +
|
||||
common +
|
||||
`
|
||||
const routes = [];
|
||||
for (const role of ['procurement', 'department_head', 'finance']) {
|
||||
const viewer = client();
|
||||
@@ -33,4 +44,6 @@ await new Function('fs', 'assert', 'return (async()=>{' + common + `
|
||||
note: 'Only current first-page tasks are followed; disposable tests cover pending approval and issuance.'
|
||||
}, null, 2));
|
||||
console.log('Encaminhamento de adjudicacoes conferido com o ambito actual dos perfis existentes.');
|
||||
` + '})()')(fs, assert);
|
||||
` +
|
||||
'})()',
|
||||
)(fs, assert);
|
||||
|
||||
Reference in New Issue
Block a user