Re: [PATCH v3 0/5] pretty: format aliases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks.  Overall I like the direction this is going.

There however are too many style violations that I prefer not to fix
myself.

 * Format if/while/switch etc. like this:

	if (expression) {
        	statement;
                ...
	}

   not like this:

	if( expression ){
        	...

   - Have one SP between syntactic keyword and an open parenthesis;
   - Do not have extra SP before or after the expression inside
     parentheses;
   - Have one SP between a close parenthesis and an open brace.

 * do not initialise statics to 0 or NULL; e.g. not like
    
	static size_t commit_formats_len = 0;

   but like

	static size_t commit_formats_len;

 * Do not omit SP around operators.

	for (i = 0; i < builtin_formats_len; i++) {
        	...

   I.e. not like this:

	for (i=0; i<builtin_formats_len; i++) {

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]