This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
"#dontformat" directive #265
Labels
Comments
I'd prefer what you call "per-block formatting", because I think writing end sequences for the directive is more tedious than it helps. |
Potentially it could also target a specific rule if we give them proper names. {
# nixpkgs-fmt skip=list-formatting
something = [
"3A3C43" "BE3E48" "869A3A" "C4A535"
"4E76A1" "855B8D"
];
} |
tapayne88
added a commit
to tapayne88/dotfiles
that referenced
this issue
Dec 9, 2021
Would have liked to keep most of this but it currently doesn't support ignore comments - see nix-community/nixpkgs-fmt#265
tapayne88
added a commit
to tapayne88/dotfiles
that referenced
this issue
Dec 12, 2021
Would have liked to keep most of this but it currently doesn't support ignore comments - see nix-community/nixpkgs-fmt#265
This is the only thing I've found missing from this tool. It's nice to be able to control whitespace indentation sometimes |
This feels like the right way to do and aligns with other linter tools. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
Some blocks of code are just better formatted by humans:
turns into
Describe the solution you'd like
#dontformat directives, turning off formatting for a given code block:
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: