Static Analysis Warnings and Automatic Fixing: A Replication for C\# Projects
Title | Static Analysis Warnings and Automatic Fixing: A Replication for C\# Projects |
Publication Type | Conference Paper |
Year of Publication | 2022 |
Authors | Odermatt, Martin, Marcilio, Diego, Furia, Carlo A. |
Conference Name | 2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) |
Date Published | mar |
Keywords | C\# languages, codes, composability, Computer languages, Conferences, Human Behavior, Java, Programming, pubcrawl, Resiliency, static analysis, static code analysis |
Abstract | Static analyzers have become increasingly popular both as developer tools and as subjects of empirical studies. Whereas static analysis tools exist for disparate programming languages, the bulk of the empirical research has focused on the popular Java programming language. In this paper, we investigate to what extent some known results about using static analyzers for Java change when considering C\#-another popular object-oriented language. To this end, we combine two replications of previous Java studies. First, we study which static analysis tools are most widely used among C\# developers, and which warnings are more commonly reported by these tools on open-source C\# projects. Second, we develop and empirically evaluate EagleRepair: a technique to automatically fix code in response to static analysis warnings; this is a replication of our previous work for Java [20]. Our replication indicates, among other things, that 1) static code analysis is fairly popular among C\# developers too; 2) Re-Sharper is the most widely used static analyzer for C\#; 3) several static analysis rules are commonly violated in both Java and C\# projects; 4) automatically generating fixes to static code analysis warnings with good precision is feasible in C\#. The EagleRepair tool developed for this research is available as open source. |
DOI | 10.1109/SANER53432.2022.00098 |
Citation Key | odermatt_static_2022 |