IEEE Transactions on Dependable and Secure Computing · 2022 · 19 citations · 44 references
ComputingComputer ScienceComputer SystemsProgramming LanguagesSoftware EngineeringSystems ProgrammingAbstract Syntax TreesPatch AnalysisSoftware MaintenanceSoftware TestingStatic Code AnalysisAbstract Syntax Tree InstrumentationAbstract Syntax Tree TraversalAutomated Bug FindingRule-based Static AnalysisSoftware Patch AnalysisStatic Bug DetectionStatic Error AnalysisStatic Structure Analysis
Previous work has shown that early resolution of issues detected by static code analyzers can prevent major costs later on. However, developers often ignore such issues for two main reasons. First, many issues should be interpreted to determine if they correspond to actual flaws in the program. Second, static analyzers often do not present the issues in a way that is actionable. To address these problems, we present Sorald: a novel system that uses metaprogramming templates to transform the abstract syntax trees of programs and suggests fixes for static analysis warnings. Thus, the burden on the developer is reduced from interpreting and fixing static issues, to inspecting and approving full fledged solutions. Sorald fixes violations of 10 rules from SonarJava, one of the most widely used static analyzers for Java. We evaluate Sorald on a dataset of 161 popular repositories on Github. Our analysis shows the effectiveness of Sorald as it fixes 65% (852/1,307) of the violations that meets the repair preconditions. Overall, our experiments show it is possible to automatically fix notable violations of the static analysis rules produced by the state-of-the-art static analyzer SonarJava.
44
Fine-grained and accurate source code differencing
Jean‐Rémy Falleri, Floréal Morandat, Xavier Blanc et al. · 2014 · 550 citations · Full text
David Hovemeyer, William Pugh · ACM SIGPLAN Notices · 2004 · 391 citations
Measure it? Manage it? Ignore it? software practitioners and technical debt
Neil Ernst, Stephany Bellomo, İpek Özkaya et al. · 2015 · 250 citations