ios - Uncrustify: nested block indeting is wrong -
i have code:
dispatch_async(dispatch_get_main_queue(), ^{ if (self.adappearblockisanimated) { [uiview animatewithduration:kanimationtime animations:^{ self.adappearblock(); }]; } });
unfortunately, uncrustify makes like:
dispatch_async(dispatch_get_main_queue(), ^{ if (self.adappearblockisanimated) { [uiview animatewithduration:kanimationtime animations:^{ self.adappearblock(); }]; } });
my config:
indent_oc_block=true indent_oc_block_msg = 0
does know how make normal? without spaces in nested block.
edit: cannot comment now, using xcode.
it appears bug in uncrustify itself; can't work around config change.
see:
https://github.com/bengardner/uncrustify/issues/68
(personally, i'm big fan of turning on "tab indents", selecting all, hitting , living whatever xcode produces. having standard set of formatting defaults our team, on team can , not generate bunch of spurious diffs when committing code.)
Comments
Post a Comment