Bring your own coding style

Coding style is a representation of source code, which does not affect the behavior of program execution. The choice of coding style is purely a matter of developer preference. Inconsistency of coding style not only decreased readability but also can cause frustration during programming. In this paper, we propose a novel tool, called StyleCoordinator, to solve both of the following problems, which would appear to contradict each other: ensuring a consistent coding style for all source codes managed in a repository and ensuring the ability of developers to use their own coding styles in a local environment. In order to validate the execution performance, we apply the proposed tool to an actual software repository.

[1]  Diomidis Spinellis,et al.  The Evolution of C Programming Practices: A Study of the Unix Operating System 1973-2015 , 2016, 2016 IEEE/ACM 38th International Conference on Software Engineering (ICSE).

[2]  Xiaosong Li,et al.  Effectively teaching coding standards in programming , 2005, SIGITE '05.

[3]  Robert D. Cameron An abstract pretty printer , 1988, IEEE Software.

[4]  S. C. Day EXPECTATIONS , 1983, The Lancet.

[5]  Mathias Meyer,et al.  Continuous Integration and Its Tools , 2014, IEEE Software.

[6]  Jurgen J. Vinju,et al.  Towards a universal code formatter through machine learning , 2016, SLE.

[7]  Leon Moonen,et al.  Assessing the value of coding standards: An empirical study , 2008, 2008 IEEE International Conference on Software Maintenance.

[8]  Andreas Zeller,et al.  The impact of tangled code changes , 2013, 2013 10th Working Conference on Mining Software Repositories (MSR).

[9]  Danny Cohen On Holy Wars and a Plea for Peace , 1981, Computer.

[10]  Curtis R. Cook,et al.  A taxonomy for programming style , 1990, CSC '90.

[11]  Charles A. Sutton,et al.  Learning natural coding conventions , 2014, SIGSOFT FSE.

[12]  Christian Bird,et al.  Characteristics of Useful Code Reviews: An Empirical Study at Microsoft , 2015, 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories.

[13]  Lisa F. Rubin Syntax-Directed Pretty Printing—A First Step Towards a Syntax-Directed Editor , 1983, IEEE Transactions on Software Engineering.