I said

“You can’t deterministically keep them from making even a tiny fraction of all the possible errors they can and do make though.”

And you replied

“This may be platform dependent.”

I’m unsure how else to read that other than an implication that this might be possible on some platforms.

I would certainly consider Roslyn analyzers capable of covering "a tiny fraction" of possible errors :) They are quite capable of covering for many common types of structural coding mistakes.