nix icon indicating copy to clipboard operation
nix copied to clipboard

Automatically format with clang-tools

Open grahamc opened this issue 3 years ago • 3 comments

Sort of a shitpost, but most times I read through Nix I wish it was consistently formatted.

grahamc avatar Jun 24 '22 22:06 grahamc

I was dying for something like this when I tried to write some code for Nix a few days ago. Hope it happens!

lovesegfault avatar Jun 25 '22 03:06 lovesegfault

I just squashed all the style update commits into one, rebased onto origin/master, and applieud a single reformat commit at the end. Also I changed .git-blame-ignore-revs to be a todo marker.

grahamc avatar Jun 27 '22 13:06 grahamc

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-33/20048/1

nixos-discourse avatar Jun 30 '22 14:06 nixos-discourse

TODO: add a CI check to verify formatting.

edolstra avatar Feb 03 '23 12:02 edolstra