Cargando…

An empirical investigation on the challenges of creating custom static analysis rules for defect localization

Custom static analysis rules, i.e., rules specific for one or more applications, have been successfully applied to perform corrective and preventive software maintenance. Pattern-driven maintenance (PDM) is a method designed to support the creation of such rules during software maintenance. However,...

Descripción completa

Detalles Bibliográficos
Autores principales: Mendonça, Diogo S., Kalinowski, Marcos
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Springer US 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8791670/
http://dx.doi.org/10.1007/s11219-021-09580-z
_version_ 1784640233880420352
author Mendonça, Diogo S.
Kalinowski, Marcos
author_facet Mendonça, Diogo S.
Kalinowski, Marcos
author_sort Mendonça, Diogo S.
collection PubMed
description Custom static analysis rules, i.e., rules specific for one or more applications, have been successfully applied to perform corrective and preventive software maintenance. Pattern-driven maintenance (PDM) is a method designed to support the creation of such rules during software maintenance. However, as PDM was recently proposed, few maintainers have reported on its usage. Hence, the challenges and skills needed to apply PDM properly are unknown. In this paper, we investigate the challenges faced by maintainers on applying PDM for creating custom static analysis rules for defect localization. We conducted an observational study on novice maintainers creating custom static analysis rules by applying PDM. The study was divided into three tasks: (i) identifying a defect pattern, (ii) programming a static analysis rule to locate instances of the pattern, and (iii) verifying the located instances. We analyzed the efficiency and acceptance of maintainers on applying PDM and their comments on task challenges. We observed that previous knowledge on debugging, the subject software, and related technologies influenced the performance of maintainers as well as the time to learn the technology involved in rule programming. The results strengthen our confidence that PDM can help maintainers in producing custom static analysis rules for locating defects. However, a proper selection and training of maintainers is needed to apply PDM effectively. Also, using a higher level of abstraction can ease static analysis rule programming for novice maintainers.
format Online
Article
Text
id pubmed-8791670
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher Springer US
record_format MEDLINE/PubMed
spelling pubmed-87916702022-01-27 An empirical investigation on the challenges of creating custom static analysis rules for defect localization Mendonça, Diogo S. Kalinowski, Marcos Software Qual J Article Custom static analysis rules, i.e., rules specific for one or more applications, have been successfully applied to perform corrective and preventive software maintenance. Pattern-driven maintenance (PDM) is a method designed to support the creation of such rules during software maintenance. However, as PDM was recently proposed, few maintainers have reported on its usage. Hence, the challenges and skills needed to apply PDM properly are unknown. In this paper, we investigate the challenges faced by maintainers on applying PDM for creating custom static analysis rules for defect localization. We conducted an observational study on novice maintainers creating custom static analysis rules by applying PDM. The study was divided into three tasks: (i) identifying a defect pattern, (ii) programming a static analysis rule to locate instances of the pattern, and (iii) verifying the located instances. We analyzed the efficiency and acceptance of maintainers on applying PDM and their comments on task challenges. We observed that previous knowledge on debugging, the subject software, and related technologies influenced the performance of maintainers as well as the time to learn the technology involved in rule programming. The results strengthen our confidence that PDM can help maintainers in producing custom static analysis rules for locating defects. However, a proper selection and training of maintainers is needed to apply PDM effectively. Also, using a higher level of abstraction can ease static analysis rule programming for novice maintainers. Springer US 2022-01-27 2022 /pmc/articles/PMC8791670/ http://dx.doi.org/10.1007/s11219-021-09580-z Text en © The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature 2021 This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic.
spellingShingle Article
Mendonça, Diogo S.
Kalinowski, Marcos
An empirical investigation on the challenges of creating custom static analysis rules for defect localization
title An empirical investigation on the challenges of creating custom static analysis rules for defect localization
title_full An empirical investigation on the challenges of creating custom static analysis rules for defect localization
title_fullStr An empirical investigation on the challenges of creating custom static analysis rules for defect localization
title_full_unstemmed An empirical investigation on the challenges of creating custom static analysis rules for defect localization
title_short An empirical investigation on the challenges of creating custom static analysis rules for defect localization
title_sort empirical investigation on the challenges of creating custom static analysis rules for defect localization
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8791670/
http://dx.doi.org/10.1007/s11219-021-09580-z
work_keys_str_mv AT mendoncadiogos anempiricalinvestigationonthechallengesofcreatingcustomstaticanalysisrulesfordefectlocalization
AT kalinowskimarcos anempiricalinvestigationonthechallengesofcreatingcustomstaticanalysisrulesfordefectlocalization
AT mendoncadiogos empiricalinvestigationonthechallengesofcreatingcustomstaticanalysisrulesfordefectlocalization
AT kalinowskimarcos empiricalinvestigationonthechallengesofcreatingcustomstaticanalysisrulesfordefectlocalization