A question which has demonstrated a lack of effort can manifest the symptoms in different ways.
In general, if a question really doesn't show any effort and is just soliciting opinions or guidance, that's likely too broad.
Questions which seem to not really offer a concrete question associated with their question could also be considered unclear, since it's quite useful to have an objective with what the OP wants to accomplish at some level. Clarity helps answerers deliver better answers.
If an asker wants to make it clear that they have code and that they have a problem, then the problem needs to be self-contained. If it isn't, then you can close it for that applicable reason.
Additionally, if the question treads existing grounds, then the lack of effort was searching (although in some kind of defense, perhaps that is less accessible than we'd like); in that case it should be closed as a dupe.
I wouldn't read too much into the blanket rule of, "Lack of effort is not a reason to close". There's too many associated symptoms with it to take that at face value.