Is it up to code (anywhere) to have a ground wire poking out the end of a wire nut?
Yes, it's up to code, and you will only find the top hole on green wirenuts that are only used for ground connections.