A Data-Driven Methodology for Quality Aware Code Fixing

In today’s rapidly changing software development landscape, ensuring code quality is essential to reliability, maintainability, and security among other aspects. Identifying code quality issues can be tackled; however, implementing code quality improvements can be a complex and time-consuming task....

Full description

Saved in:
Bibliographic Details
Main Authors: Thomas Karanikiotis, Andreas L. Symeonidis
Format: Article
Language:English
Published: Wiley 2025-01-01
Series:IET Software
Online Access:http://dx.doi.org/10.1049/sfw2/4147669
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849322367966248960
author Thomas Karanikiotis
Andreas L. Symeonidis
author_facet Thomas Karanikiotis
Andreas L. Symeonidis
author_sort Thomas Karanikiotis
collection DOAJ
description In today’s rapidly changing software development landscape, ensuring code quality is essential to reliability, maintainability, and security among other aspects. Identifying code quality issues can be tackled; however, implementing code quality improvements can be a complex and time-consuming task. To address this problem, we present a novel methodology designed to assist developers by suggesting alternative code snippets that not only match the functionality of the original code but also improve its quality based on predefined metrics. Our system is based on a language-agnostic approach that allows the analysis of code snippets written in different programming languages. It employs advanced techniques to assess functional similarity and evaluates syntactic similarity, suggesting alternatives that minimize the need for extensive modification. The evaluation of our system on multiple axes demonstrates the effectiveness of our approach in providing usable code alternatives that are both functionally equivalent and syntactically similar to the original snippets, while significantly improving quality metrics. We argue that our methodology and tool can be valuable for the software engineering community, bridging the gap between the identification of code quality problems and the implementation of practical solutions that improve software quality.
format Article
id doaj-art-3c47f4f1713f4b1ab7bae8cdd0fc521b
institution Kabale University
issn 1751-8814
language English
publishDate 2025-01-01
publisher Wiley
record_format Article
series IET Software
spelling doaj-art-3c47f4f1713f4b1ab7bae8cdd0fc521b2025-08-20T03:49:23ZengWileyIET Software1751-88142025-01-01202510.1049/sfw2/4147669A Data-Driven Methodology for Quality Aware Code FixingThomas Karanikiotis0Andreas L. Symeonidis1Department of Electrical and Computer EngineeringDepartment of Electrical and Computer EngineeringIn today’s rapidly changing software development landscape, ensuring code quality is essential to reliability, maintainability, and security among other aspects. Identifying code quality issues can be tackled; however, implementing code quality improvements can be a complex and time-consuming task. To address this problem, we present a novel methodology designed to assist developers by suggesting alternative code snippets that not only match the functionality of the original code but also improve its quality based on predefined metrics. Our system is based on a language-agnostic approach that allows the analysis of code snippets written in different programming languages. It employs advanced techniques to assess functional similarity and evaluates syntactic similarity, suggesting alternatives that minimize the need for extensive modification. The evaluation of our system on multiple axes demonstrates the effectiveness of our approach in providing usable code alternatives that are both functionally equivalent and syntactically similar to the original snippets, while significantly improving quality metrics. We argue that our methodology and tool can be valuable for the software engineering community, bridging the gap between the identification of code quality problems and the implementation of practical solutions that improve software quality.http://dx.doi.org/10.1049/sfw2/4147669
spellingShingle Thomas Karanikiotis
Andreas L. Symeonidis
A Data-Driven Methodology for Quality Aware Code Fixing
IET Software
title A Data-Driven Methodology for Quality Aware Code Fixing
title_full A Data-Driven Methodology for Quality Aware Code Fixing
title_fullStr A Data-Driven Methodology for Quality Aware Code Fixing
title_full_unstemmed A Data-Driven Methodology for Quality Aware Code Fixing
title_short A Data-Driven Methodology for Quality Aware Code Fixing
title_sort data driven methodology for quality aware code fixing
url http://dx.doi.org/10.1049/sfw2/4147669
work_keys_str_mv AT thomaskaranikiotis adatadrivenmethodologyforqualityawarecodefixing
AT andreaslsymeonidis adatadrivenmethodologyforqualityawarecodefixing
AT thomaskaranikiotis datadrivenmethodologyforqualityawarecodefixing
AT andreaslsymeonidis datadrivenmethodologyforqualityawarecodefixing