mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
* refactor(sanctions): simplify handler to Redis-read-only, fix seed OOM risk Handler (424→56 lines): - Remove live OFAC fetch fallback from Vercel Edge handler: XMLParser, OFAC_SOURCES, fetchSource, collectPressure, cachedFetchJson fallback. Vercel reads Redis only; Railway makes all external API calls. - On seed miss/empty, return emptyResponse() matching the radiation pattern. Seed: - Fetch SDN then Consolidated sequentially instead of Promise.all. Combined parallel parse peaks at ~150MB, tight against 512MB heap limit. Tests: - Add gold standard compliance assertions (no XMLParser, no OFAC_SOURCES). - Add memory safety assertion (no Promise.all on OFAC sources). - Replace handler XML-function tests (removed code) with Redis-read assertions. * chore: exclude DMCA-TAKEDOWN-NOTICE.md from markdownlint
11 lines
278 B
JSON
11 lines
278 B
JSON
{
|
|
// Only enforce the 3 rules from PR #72. Everything else is off.
|
|
"config": {
|
|
"default": false,
|
|
"MD012": true,
|
|
"MD022": true,
|
|
"MD032": true
|
|
},
|
|
"ignores": ["node_modules/**", "dist/**", "src-tauri/target/**", ".planning/**", "DMCA-TAKEDOWN-NOTICE.md"]
|
|
}
|