Guard On Every Trigger Path

Keep the start conditions of a feature that fires from two entry points — typically a polling loop and an end-of-item callback — identical on both paths, because a condition added to only one of them is dead code that produces no error, no log and no crash. Use when a newly added guard, exclusion or feature flag appears to have no effect at all, or when a feature behaves correctly most of the time and wrongly in one specific timing.

maxrave-dev 4d44644 5.2 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/guard-on-every-trigger-path commit 4d44644e48

Frequently asked questions

npx skillmds@latest add maxrave-dev/guard-on-every-trigger-path