Code Repositories has a feature “Format Before Committing” which (perhaps misleadingly) reformats the entire repository rather than the individual files which have been modified in that commit. We’ve had a few pull requests where the formatting was inadvertently applied (which creates a difficult PR to review of potentially hundreds of modified files) - in each case the easiest approach was to cancel the PR, and create a new branch/PR with the modified files copied over manually (still tedious). In most cases we would not want this to be selected, but because this appear to be recommended in the commit panel, developers will often select it. (We instead encourage the right click
> Format Document
or Format Selection
options)
Requesting an enhancement request to either (1) Add a repo-level setting to hide the ‘Format before committing’ div in the commit panel or (2) change the behavior to only modify the files being modified by that commit. (I have a preference to #1 but open to other options too).
(EDIT: I just noticed @wgentry posted on this in January but that topic is closed - posting here anyways to echo the request)
Quick note - huge thanks to the Palantir Product Development teams - you all have been super responsive to requests in this forum and we’ve seen a lot of really great features arrive in platform recently. Thank you for everything you do to continuously improve this platform!