Files
Investidor-V2/outputs/investmoz-navegacao-consolidacao-QA-20261016/lint-fix.py
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

11 lines
885 B
Python

from pathlib import Path
import re
p=Path('C:/Users/macbook/.config/investmoz/navegacao-consolidacao-QA-20261016/source')
for f in ['resources/js/pages/desk/request.tsx','resources/js/pages/investment/submission.tsx','resources/js/components/simulation-form.tsx']:
q=p/f;s=q.read_text('utf-8');s=s.replace("String(v ?? '')", "typeof v === 'string' ? v : ''")
if f.endswith('submission.tsx'):
s=re.sub(r"!String\(\s*d.payload\[\s*k as keyof Payload\s*\] \?\? '',\s*\).trim\(\)","!d.payload[k as keyof Payload]",s)
q.write_text(s,'utf-8')
q=p/'resources/js/pages/investor-path/context.tsx';s=q.read_text('utf-8');s=s.replace('className="w-full text-left"','className="w-full min-w-[36rem] table-fixed text-left"');s=s.replace('<th>Tratamento</th>','<th className="w-44 p-2">Tratamento</th>');q.write_text(s,'utf-8')
print('Typed scalar assignments and readable comparison columns')