[Gluster-devel] if/else coding style :-)

Raghavendra Bhat rabhat at redhat.com
Mon Oct 13 12:51:20 UTC 2014


On Monday 13 October 2014 05:31 PM, Pranith Kumar Karampuri wrote:
> hi,
>      Why are we moving away from this coding style?:
> if (x) {
> /*code*/
> } else {
> /* code */
> }
>
> Pranith

For me the script that checks the coding style (checkpatch.pl - which is 
present in the extras directory within the glusterfs repo) gave the 
above style as an error when I executed rfc.sh for submitting the patch. 
And the patch will not be submitted to gerrit if errors are reported by 
the script.


Regards,
Raghavendra Bhat

> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-devel



More information about the Gluster-devel mailing list