There's currently not a single obvious way to approach questions and answers that include too much of a user's own code.
We can suggest edits, but only 3 non-moderator users currently have earned the reputation needed to review that queue or to make edits automatically, and the edit history of the post retains all past versions so the code is still easily accessible. Not only that, editing is very subjective; there's no objective measure of where to draw the line between a snippet and too much code, and it can be very hard to identify the proper MCVE for someone else's question.
We can flag or vote to close, but none of the close reasons available are appropriate and the excess code is not removed unless by some additional action.
We can flag for moderator attention, but all of the moderators are staff who undoubtedly have other things to do than police an expanding portfolio of CS50x support sites, and even in this case it's not clear whether there's a middle ground between leaving the excess code in the post's edit history and deleting it entirely.
Some direction from staff would be appreciated. Should we:
- Continue to suggest edits to these posts to remove offending code?
- Continue to flag these posts for moderator attention?
- Expect a custom close-reason to be added that references the Academic Honesty policy (perhaps copied into its own page in the Help Center)?
- Expect moderation duties to be passed on from staff to elected community moderators, as is traditionally the case on SE network sites?
- Expect the edit history issue to persist, under the assumption that if someone really wants to copy code, they'll find a way regardless; or expect posts in violation of the policy to be deleted outright so that no edit history is available?