Diktat: Lightweight Static Analysis for Kotlin

A. Kuleshov, Petr Trifanov, Vladislav Frolov, Guangtai Liang
{"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}
引用次数: 1

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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
要求:Kotlin的轻量级静态分析
Kotlin是一种相对较新的编程语言,年复一年变得越来越流行。随着Kotlin编写的全局代码库的增长,开发人员需要静态分析的智能解决方案来防止代码问题。这些工具构建在Kotlin编译器提供的不同中间表示(IR)之上:程序结构接口(PSI)、新中间表示(new IR)和抽象语法树(AST)。然而,现有的代码分析工具有其局限性,包括复杂性、低可配置性、较差的性能和少量的检查。为了解决这些限制,我们提出了一种用于Kotlin的轻量级静态分析方法,该方法在Diktat项目中实现。我们还将讨论Kotlin静态分析的行业问题,并将回顾用于此目的的不同ir的使用情况。大多数流行的开源分析程序将通过质量指标进行审查和比较。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
An efficient dual ensemble software defect prediction method with neural network Genetic Algorithm-based Testing of Industrial Elevators under Passenger Uncertainty Predicting gray fault based on context graph in container-based cloud Aging and Rejuvenation Models of Load Changing Attacks in Micro-Grids Sensitivity Analysis of Software Rejuvenation Model with Markov Regenerative Process
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1