Oh, that sucks.
In any case, Gatekeeper is mostly intended to save grandmas who are at risk of downloading random malware from the internet.
If you're a developer who is reasonably aware of how computers work you might as well disable Gatekeeper entirely. You're taking many times more risk every time you use Terminal.