Guided Pattern Mining for API Misuse Detection by Change-Based Code Analysis
Sebastian Nielebock, Robert Heum\"uller, Kevin Michael Schott, and Frank Ortmeier

TL;DR
This paper presents a method for improving API misuse detection by integrating change-based code analysis with lightweight search and filtering strategies, enabling just-in-time detection during code commits.
Contribution
It introduces a process-agnostic, change-focused approach with filtering strategies for more relevant pattern inference and real-time misuse detection.
Findings
Commit-based search with filtering reduces analysis scope.
Method-level filtering outperforms file-level filtering.
Project-internal and external code searches are complementary.
Abstract
Lack of experience, inadequate documentation, and sub-optimal API design frequently cause developers to make mistakes when re-using third-party implementations. Such API misuses can result in unintended behavior, performance losses, or software crashes. Therefore, current research aims to automatically detect such misuses by comparing the way a developer used an API to previously inferred patterns of the correct API usage. While research has made significant progress, these techniques have not yet been adopted in practice. In part, this is due to the lack of a process capable of seamlessly integrating with software development processes. Particularly, existing approaches do not consider how to collect relevant source code samples from which to infer patterns. In fact, an inadequate collection can cause API usage pattern miners to infer irrelevant patterns which leads to false alarms…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
