You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #12 from cloud-ecs/spring-cleaning-2
- test: replace mocha with node:test
- refactor: convert scanner stack from callbacks to async/await
- ci: install and start rspamd, spamassassin, and clamd to test against
- ci: install opendkim and opendmarc
- clamdscan: strip file to it as clamd likely doesn't have file perms
- style: prettier
Copy file name to clipboardExpand all lines: AGENTS.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,9 @@ If a package-level instruction file exists, it is authoritative for that package
54
54
- Results: `connection.transaction.results.add(this, { pass|fail|skip|msg|err, emit })`; query with `results.has(plugin, list, search)`. `emit: true` already logs the collated line — don't also `loginfo`/`logerror` the same thing. results.add(this, {err}) always logs.
55
55
- Config loads via `config.get` with a hot-reload callback; declare every boolean or it stays a string and `=== true/false` silently fails:
- Keep handlers thin. Push pure decision logic and I/O into `lib/*.js` as pure functions that return a verdict/value; the handler just maps that to `results.add` + `next`. For external I/O (DNS, network), expose an injectable seam — a swappable function whose default is the real implementation — so tests run without mocks.
60
62
- If you add files outside `index.js` (e.g. a `lib/` dir), add them to `package.json``files` so they publish.
0 commit comments