Add #! check to msftidy

We went through all these PRs before opening this one:
#2588 -> #2597 -> #2606 -> #2618