Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

The system rejects code dumps without context from low-rep users by comparing the ratio of context (non-code-formatted text) to code (text which is wrapped in <pre>). (See also this feature request.)

It seems that this can be circumvented by using tabs instead of 4 spaces, given that this answer was successfully posted. I'll admit that I'm not sure exactly where the bug is here.

It could be that the OP, at 161 rep, has graduated above the restriction. In my opinion, no one should be able to add a post which is 100% code. We might relax the ratios based on rep, but 100% code is never appropriate.

It could be that the code detector discovered that the content of the code block is prose. It's still formatted as code, and this shouldn't be allowed.

It could be that the code detector missed that this was going to be formatted as code because it used tabs and not spaces. This seems like the most likely case, given the recent post (that I can't find) about a bug where it allowed an entire post enclosed in backticks.

share|improve this question
up vote 6 down vote accepted

This check is only activated on Stack Overflow, and only for questions. It should also be noted that your example isn't actually code, just mis-formatted prose.

share|improve this answer
(1) Why is this check only activated on Stack Overflow, and why is it only for questions? (2) Why should prose formatted as code be allowed? – Kevin Vermeer Oct 12 '11 at 17:14
(1) Because the code dump problem is largely only a problem on Stack Overflow questions (also, for answers, code-only may be easier to justify). This check is there to help with the "big city" problems that Stack Overflow has with its 4k questions per day; no other site comes even close to that. (2) My point is that your example doesn't serve as an example of a a "code dump without context" that would justify turning this check on on Electrical Engineering as well. – balpha Oct 12 '11 at 17:24
I'd like to see a manageable workload turned into an even more manageable workload by automated processes whenever possible, but I'll accept this reasoning. – Kevin Vermeer Oct 12 '11 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .