TL:DR: Is lack of effort a reason to close a question?
Over the past few weeks, I've seen conflicting information about whether a lack of effort should contribute to the closing of a question. I've been under the impression since I first became a member that yes, a lack of effort should be a reason to close a question. My impression was formed by:
This Question and its Top Answer
You won't have to contend with a poorly-written duplicate of a better answer that already exists somewhere else on the site. And you won't get frustrated by having your question closed, and the folks reading it won't get frustrated by having to close it.
The Official 'How to ask a good question' page
Search, and research ...and keep track of what you find. Even if you don't find a useful answer elsewhere on the site, including links to related questions that haven't helped can help others in understanding how your question is different from the rest.
However, it was recently pointed out to me, by very high reputation users that a lack of effort "Has NEVER been a reason to close a question". Is this strictly true? Is this a unanimous view?
Most recently, I have seen this as an answer to a question about why a question was closed;
Lack of Effort has never been a reason to close, but several of the commenters alluded to that and one said: "Show us the code".
The other examples were in now deleted comments, or revised answers. I guess what I want to know is - where do we really draw the line in terms of the effort expected from an OP? If there is no visible evidence of some kind of effort put forward in a question, should we vote to close it?