Thread (4 messages) flat view 4 messages, 3 authors, 2022-01-03

Re: Git Diff feature request

From: Erik Cervin Edin <hidden>
Date: 2021-12-31 11:16:10

On Fri, Dec 31, 2021 at 11:23 AM [off-list ref] wrote:
One interesting technique I have seen used is to set up a pre-commit hook and/or clean filter to format code according to corporate/team standards. Reprocessing code prior to the commit would allow a normalization of coding standards and removing of EOL or space/tab concerns.
...
We use a similar technique (enforced only by policy right now, not a hook), which is to require code to run through standard IDE source formatting. Improperly formatted code hitting pull requests gets a decline until the code is properly formatted.
I agree with Randall, the easiest solution is to adhere to a formatting standard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help