I prefer letting the attacker in and taking him out. If they just come in to spam your dock or launchpad, that's a different story.
To answer your question, I consider it a frubble as you can rarely time it just right to have your friend hit your base and someone is able to take out the attacker's fleet. But then again, in a real war, all tactics are valid.