-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"#dontformat" directive #265
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"
];
} |
Would have liked to keep most of this but it currently doesn't support ignore comments - see nix-community/nixpkgs-fmt#265
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. |
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: