A while back, y'all asked for some warnings for folks asking questions here: What would Clippy say?
After thorough review (mostly by animuson & JNat), we've determined that the following warnings can be implemented, based on question title matches:
\b((do(ing)?\s+this)|(this\s+(\w+\s)? code)|me|my|I)\b
Avoid generic terms; please tell us exactly what your code does!
This matches over 1% of the last 10,000 closed/deleted titles. All the rest of the expressions struggle to match this combined - I mention this because even if these warnings help in the cases where they show up, they're not gonna show up that often.
^(How|Can|Should|Would|Need)\b.+\??$
Titles that contain a specific question are generally inappropriate for Code Review.
\b(wrong|incorrect)\b
Code that produces incorrect results is off-topic for Code Review.
\b(better|improve(ment)?|improving)\b
Please ensure that the title states what your code does. Seeking improvement on all aspects of the code is implied for Code Review questions, so specific concerns need not be mentioned in the title.
\b(short(en|er|ening)?|optimi(se|ze|sation|zation)|efficien(t|ce))\b
Efficiency and optimization are implied for every question on Code Review. The title should simply state the task accomplished by the code.
\b(refactor(ing)?|avoid|too many|need|DRY)\b
Please ensure that the title states what your code does, and reviewers will point out what needs to be improved.
\b(statements|loops|else|catch)\b
Please ensure that the title states what your code does. If the code is a purely generic example that has no specific purpose, then the question would be off-topic for Code Review.
I've gone ahead and turned these on. Enjoy!
\b(wrong|incorrect)\b
could probably includefail|failing
too. \$\endgroup\$\b(wrong|incorrect|invalid)\b
applied to all body text, not just the title? Obviously it shouldn't prevent submission, but it should at least address the seemingly widespread ignorance. \$\endgroup\$\b(wrong|incorrect)\b
? \$\endgroup\$