Multiple questions on meta indicate, that code-only answers, if they are self-explanatory and, what's more important, correct, do not fall into low quality: 1, 2.
Meanwhile I failed the audit when I accepted a code-only answer:
What is wrong with that?
Edit: I think this question is more specific, than duplicate candidate as it limits itself to code-only answers.