Closed ZLLentz closed 6 months ago
Seems reasonable to me 👍 (DUT, GVL, POU is our normal set of "source files" I believe)
Forgot to add, the idea for having these newlines at all comes from some old @slacAWallace PR or comment on a PR of some kind. It's a pain to maintain manually, but as an automatic hook...
closed by #23
I'm considering making a pre-commit hook that inserts newlines at the start and end of TwinCAT POUs (and some of the other files?). When a TwinCAT POU starts and ends with a newline, it is much easier to review in github. Snippit from a current PR of mine that does not do this:
With pre and post newlines:
With two pre and two post newlines: