Skip to content

scanLocalApexTriggers

scanLocalApexTriggers(sourceDirs): RawApexTriggerRecord[]

Defined in: packages/simply-aep-core/src/at4dxApexTriggerLocalScan.ts:55

Scan local Salesforce DX source directories for Apex triggers, reading each .trigger file’s body directly to recover its target SObject and any fflib_SObjectDomain.triggerHandler(...) calls it makes — the data missing-domain-trigger (at4dxValidate.ts) needs. See docs/design/0036-at4dx-domain-binding-trigger-validate.md.

A trigger whose body doesn’t parse as trigger X on Y (...) at all (corrupt/unreadable source) is silently skipped — the same “can’t identify it, so it doesn’t count” treatment at4dxLocalScan.ts gives a CustomMetadata component it can’t derive a DeveloperName from.

string[]

The source directories to scan.

RawApexTriggerRecord[]

Every Apex trigger found, normalized.