Android Lint  is a tool built into Android Studio that helps developers to write better mobile apps. Lint scans the application’s source code for errors and reports them to the developer. These errors can be related to different aspects such as performance, security, accessibility, etc.  To detect these errors, Lint relies on a limited set of rules that detect different classes of errors in the source code.
However, developers sometimes need to detect more specific errors than those available in Lint’s basic configuration. This is particularly the case when they use a particular library to develop their application. To do this, they must write new detection rules using the API provided by Lint . However, developers find that using the API and writing detection rules are tedious tasks that should be automated [5,6].
The goal of this research internship is to help developers automatically generate Lint rules from annotated source code samples. Thus, the project consists of developing a tool that will perform the following tasks:
- From an example source code, automatically generate an abstract description using the Spoon library ,
- Translate the abstract form into a rule for Android Lint ,
- Integrate the new rule using the API provided by Android Lint.
- Habchi, S., Blanc, X., & Rouvoy, R. On adopting linters to deal with performance concerns in Android apps. ASE 2018: 6-16.
- Christakis, M., & Bird, C. What developers want and need from program analysis: an empirical study. ASE 2016: 332-343.
- Pawlak, R., Noguera, C., & Petitprez, N. Spoon: Program analysis and transformation in java (Doctoral dissertation, Inria).
- Johnson, B., Song, Y., Murphy-Hill, E., & Bowdidge, R. Why don’t software developers use static analysis tools to find bugs?. ASE 2013: 672-681.