You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we format the nix code on the wiki with the nixfmt-rfc-style formatter?
This would make it so that the code on the wiki is following the same style that currently in the process of being adopted by nixpkgs.
Automating this could bring some issues with it, some of these being the unintended formatting of code that is intended to be formatted differently than the standard defined in RFC166, another one is that it could turn into a fight against the tools when editing.
We would need to find out how we investigate how the tools will behave when run against the wiki!
The text was updated successfully, but these errors were encountered:
jopejoe1
changed the title
RFC166 Formatting of Nix Code on the wiki
Formatting of Nix Code on the wiki
Apr 4, 2024
This sounds like something that would be ideal for a bot to handle.
Automating this could bring some issues with it, some of these being the unintended formatting of code that is intended to be formatted differently than the standard defined in RFC166, another one is that it could turn into a fight against the tools when editing.
Adding a marker (for example, in a hidden HTML comment, something like <!-- [[User:nixfmt bot]] ignore start --> and <!-- [[User:nixfmt bot]] ignore stop -->) would definitely be the best way to prevent this.
Should we format the nix code on the wiki with the nixfmt-rfc-style formatter?
This would make it so that the code on the wiki is following the same style that currently in the process of being adopted by nixpkgs.
Automating this could bring some issues with it, some of these being the unintended formatting of code that is intended to be formatted differently than the standard defined in RFC166, another one is that it could turn into a fight against the tools when editing.
We would need to find out how we investigate how the tools will behave when run against the wiki!
The text was updated successfully, but these errors were encountered: