graphhifyevolution——分析源代码历史的模块化方法

Kristiina Rahkema, Dietmar Pfahl
{"title":"graphhifyevolution——分析源代码历史的模块化方法","authors":"Kristiina Rahkema, Dietmar Pfahl","doi":"10.1109/MobileSoft52590.2021.00009","DOIUrl":null,"url":null,"abstract":"The analysis of mobile applications has gained popularity in recent years. Multiple tools have been developed to find code smells in mobile applications. To analyse code evolution of mobile applications researchers have mostly written scripts to parse repository histories and apply existing code smell tools for each commit. Some specialised tools have been developed for analysing code smell histories but they only apply one specific method of finding code smells. We developed a modular and extendable tool called GraphifyEvolution that makes it possible to analyse code repositories by analysing changes in each commit and saving the application structure, including all changes, into a Neo4j graph database. We built the tool with Swift applications in mind, especially iOS applications and frameworks, but due to its modular nature it is possible to add support for other languages easily. Implementing analysers that allow for running external analysis tools for each commit and inserting the results into the application database are also possible. Combining information on the structure of applications and its evolution with results from external code analysis tools helps answer a multitude of research questions. Given its modular nature, we hope that our tool will be useful to researchers who wish to analyse source code histories. We have currently implemented support for the languages Swift, Java, C++ and for the external tools jscpd (code duplicate scanner) and insider (vulnerability scanner).","PeriodicalId":257528,"journal":{"name":"2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems (MobileSoft)","volume":"238 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"GraphifyEvolution - A Modular Approach to Analysing Source Code Histories\",\"authors\":\"Kristiina Rahkema, Dietmar Pfahl\",\"doi\":\"10.1109/MobileSoft52590.2021.00009\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The analysis of mobile applications has gained popularity in recent years. Multiple tools have been developed to find code smells in mobile applications. To analyse code evolution of mobile applications researchers have mostly written scripts to parse repository histories and apply existing code smell tools for each commit. Some specialised tools have been developed for analysing code smell histories but they only apply one specific method of finding code smells. We developed a modular and extendable tool called GraphifyEvolution that makes it possible to analyse code repositories by analysing changes in each commit and saving the application structure, including all changes, into a Neo4j graph database. We built the tool with Swift applications in mind, especially iOS applications and frameworks, but due to its modular nature it is possible to add support for other languages easily. Implementing analysers that allow for running external analysis tools for each commit and inserting the results into the application database are also possible. Combining information on the structure of applications and its evolution with results from external code analysis tools helps answer a multitude of research questions. Given its modular nature, we hope that our tool will be useful to researchers who wish to analyse source code histories. We have currently implemented support for the languages Swift, Java, C++ and for the external tools jscpd (code duplicate scanner) and insider (vulnerability scanner).\",\"PeriodicalId\":257528,\"journal\":{\"name\":\"2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems (MobileSoft)\",\"volume\":\"238 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-05-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems (MobileSoft)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/MobileSoft52590.2021.00009\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems (MobileSoft)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/MobileSoft52590.2021.00009","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

摘要

近年来,对移动应用程序的分析越来越受欢迎。已经开发了多种工具来查找移动应用程序中的代码气味。为了分析移动应用程序的代码演变,研究人员大多编写脚本来解析存储库历史,并为每次提交应用现有的代码气味工具。已经开发了一些专门的工具来分析代码气味历史,但它们只应用一种特定的方法来查找代码气味。我们开发了一个模块化和可扩展的工具GraphifyEvolution,它可以通过分析每次提交中的更改并将应用程序结构(包括所有更改)保存到Neo4j图形数据库中来分析代码库。我们在构建这个工具时考虑了Swift应用程序,尤其是iOS应用程序和框架,但由于它的模块化特性,它可以很容易地添加对其他语言的支持。实现允许为每次提交运行外部分析工具并将结果插入应用程序数据库的分析器也是可能的。将有关应用程序结构及其演变的信息与来自外部代码分析工具的结果相结合,有助于回答大量的研究问题。考虑到它的模块化特性,我们希望我们的工具对希望分析源代码历史的研究人员有用。我们目前已经实现了对Swift、Java、c++语言以及外部工具jscpd(代码重复扫描器)和insider(漏洞扫描器)的支持。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
GraphifyEvolution - A Modular Approach to Analysing Source Code Histories
The analysis of mobile applications has gained popularity in recent years. Multiple tools have been developed to find code smells in mobile applications. To analyse code evolution of mobile applications researchers have mostly written scripts to parse repository histories and apply existing code smell tools for each commit. Some specialised tools have been developed for analysing code smell histories but they only apply one specific method of finding code smells. We developed a modular and extendable tool called GraphifyEvolution that makes it possible to analyse code repositories by analysing changes in each commit and saving the application structure, including all changes, into a Neo4j graph database. We built the tool with Swift applications in mind, especially iOS applications and frameworks, but due to its modular nature it is possible to add support for other languages easily. Implementing analysers that allow for running external analysis tools for each commit and inserting the results into the application database are also possible. Combining information on the structure of applications and its evolution with results from external code analysis tools helps answer a multitude of research questions. Given its modular nature, we hope that our tool will be useful to researchers who wish to analyse source code histories. We have currently implemented support for the languages Swift, Java, C++ and for the external tools jscpd (code duplicate scanner) and insider (vulnerability scanner).
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信