Analysis of the impact of refactoring on code quality – comparative analysis of two cases

Mariusz Łukasik

mrl1992@o2.pl
Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland (Poland)

Marek Miłosz


Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland (Poland)

Abstract

In agile methods, one of the techniques for improving code quality is refactoring. This is a process that employs a number of techniques, modifying the code without changing its functionality, aiming to improve its transparency and reduce vulnerability. You can measure the improvement of the code using different code quality metrics. The paper presents an analysis of the effect of refactoring on static code quality on the example of the open-source project Scuba. The quality of the code was measured at two different points of software development - right before and after refactoring the code. The three most popular sets of object code quality metrics and the Sonarqube tool were used for the measurement. The research clearly demonstrates the significant improvement of static code quality as a result of refactoring.


Keywords:

refactoring, static code analysis, object metrics

[1] Mirosława Lasek, Aleksandra Adamus, Informatyka ekonomiczna, 2014.
[2] M. Miłosz, M. Borys, M. Plechawska-Wójcik, Metodyki zwinne wytwarzania oprogramowania, Politechnika Lubelska, 2011.
[3] S.R. Chidamber, C.F. Kemerer, a metrics suite for objectoriented design, IEEE Transactions on Software Engineering, No 6, Vol. 20, p. 476-493, 1994.
[4] Dr. Linda Rosenberg, Applying and interpreting OO Metrics, http://www.literateprogramming.com/ooapply.pdf.
[5] B. Henderson-Sellers, Object-Oriented Metrics, measures of Complexity, Prentice Hall, 1996.
[6] Robert Martin, OO Design Quality metrics. October 28, 1994.
[7] S.H. Kan, Metryki i modele w inżynierii jakości oprogramowania, PWN 2006, s. 355-383.
[8] F. B. Abreu, The MOOD Metrics Set. ECOOP Workshop on Metrics, 1995
Download


Published
2017-12-30

Cited by

Łukasik, M., & Miłosz, M. (2017). Analysis of the impact of refactoring on code quality – comparative analysis of two cases . Journal of Computer Sciences Institute, 5, 200–203. https://doi.org/10.35784/jcsi.621

Authors

Mariusz Łukasik 
mrl1992@o2.pl
Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland Poland

Authors

Marek Miłosz 

Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland Poland

Statistics

Abstract views: 216
PDF downloads: 115