要求:Kotlin的轻量级静态分析

A. Kuleshov, Petr Trifanov, Vladislav Frolov, Guangtai Liang
{"title":"要求:Kotlin的轻量级静态分析","authors":"A. Kuleshov, Petr Trifanov, Vladislav Frolov, Guangtai Liang","doi":"10.1109/ISSREW53611.2021.00103","DOIUrl":null,"url":null,"abstract":"Kotlin is a relatively new programming language that is becoming more and more popular year after year. As the global codebase written in Kotlin grows, developers require intelligent solutions for static analysis to prevent code issues. These tools are built on top of different Intermediate Representations (IR), provided by the Kotlin compiler: Program Structure Interface (PSI), new Intermediate Representation (new IR), and Abstract Syntax Tree (AST). However, existing code analysis tools have limitations, including complexity, low configurability, poor performance, and the small number of inspections. To address these limitations, we propose an approach of the lightweight static analysis for Kotlin, which was implemented in the Diktat project. We will also cover industrial problems of static analysis for Kotlin and will review the usage of different IRs for that purpose. Most popular open-source analyzers will be reviewed and compared by quality metrics.","PeriodicalId":385392,"journal":{"name":"2021 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)","volume":"9 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Diktat: Lightweight Static Analysis for Kotlin\",\"authors\":\"A. Kuleshov, Petr Trifanov, Vladislav Frolov, Guangtai Liang\",\"doi\":\"10.1109/ISSREW53611.2021.00103\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Kotlin is a relatively new programming language that is becoming more and more popular year after year. As the global codebase written in Kotlin grows, developers require intelligent solutions for static analysis to prevent code issues. These tools are built on top of different Intermediate Representations (IR), provided by the Kotlin compiler: Program Structure Interface (PSI), new Intermediate Representation (new IR), and Abstract Syntax Tree (AST). However, existing code analysis tools have limitations, including complexity, low configurability, poor performance, and the small number of inspections. To address these limitations, we propose an approach of the lightweight static analysis for Kotlin, which was implemented in the Diktat project. We will also cover industrial problems of static analysis for Kotlin and will review the usage of different IRs for that purpose. Most popular open-source analyzers will be reviewed and compared by quality metrics.\",\"PeriodicalId\":385392,\"journal\":{\"name\":\"2021 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)\",\"volume\":\"9 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ISSREW53611.2021.00103\",\"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 International Symposium on Software Reliability Engineering Workshops (ISSREW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISSREW53611.2021.00103","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

Kotlin是一种相对较新的编程语言,年复一年变得越来越流行。随着Kotlin编写的全局代码库的增长,开发人员需要静态分析的智能解决方案来防止代码问题。这些工具构建在Kotlin编译器提供的不同中间表示(IR)之上:程序结构接口(PSI)、新中间表示(new IR)和抽象语法树(AST)。然而,现有的代码分析工具有其局限性,包括复杂性、低可配置性、较差的性能和少量的检查。为了解决这些限制,我们提出了一种用于Kotlin的轻量级静态分析方法,该方法在Diktat项目中实现。我们还将讨论Kotlin静态分析的行业问题,并将回顾用于此目的的不同ir的使用情况。大多数流行的开源分析程序将通过质量指标进行审查和比较。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Diktat: Lightweight Static Analysis for Kotlin
Kotlin is a relatively new programming language that is becoming more and more popular year after year. As the global codebase written in Kotlin grows, developers require intelligent solutions for static analysis to prevent code issues. These tools are built on top of different Intermediate Representations (IR), provided by the Kotlin compiler: Program Structure Interface (PSI), new Intermediate Representation (new IR), and Abstract Syntax Tree (AST). However, existing code analysis tools have limitations, including complexity, low configurability, poor performance, and the small number of inspections. To address these limitations, we propose an approach of the lightweight static analysis for Kotlin, which was implemented in the Diktat project. We will also cover industrial problems of static analysis for Kotlin and will review the usage of different IRs for that purpose. Most popular open-source analyzers will be reviewed and compared by quality metrics.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:481959085
Book学术官方微信