I have the following code:
@interface TRYoutubeManager : AFHTTPRequestOperationManager
- (void)getVideosForDefaultChannelsWithSuccess:(void (^)(NSArray *youtubeVideosArray))successBlock failure:(void (^)(NSError *error))failureBlock;
@end
So I want to preserve 120 characters line limit. And align declaration on colons, like this:
@interface TRYoutubeManager : AFHTTPRequestOperationManager
- (void)getVideosForDefaultChannelsWithSuccess:(void (^)(NSArray *youtubeVideosArray))successBlock
failure:(void (^)(NSError *error))failureBlock;
@end
But when I apply Uncrustify on it, I get:
@interface TRYoutubeManager : AFHTTPRequestOperationManager
- (void)getVideosForDefaultChannelsWithSuccess:(void (^)(NSArray *youtubeVideosArray))successBlock failure:(void (^)(
NSError *
error))
failureBlock;
@end
Plugin spoils the whole thing. Even line limit exceeded. Here it is some critical (I guess) params:
# Align ObjC declaration params on colon
align_oc_decl_colon = true #
# Alignment span for ObjC message colons
align_oc_msg_colon_span = 20 # number
# Alignment span for ObjC message spec
align_oc_msg_spec_span = 0 # number
# Code width
code_width = 120 # number
The whole config file HERE
Please, help me to setup Uncrustify config correclty.