MLinter: Learning Coding Practices from Examples-Dream or Reality?
CLCorentin LatappyQPQuentin Perez
Thomas Degueule
Jean-Rémy FalleriCUChristelle UrtadoSVSylvain Vauttier
Xavier BlancCédric Teyton CLCorentin Latappy
QPQuentin Perez

Thomas Degueule

Jean-Rémy Falleri
CUChristelle Urtado
SVSylvain Vauttier

Xavier Blanc
Cédric Teyton
+8
This paper investigates whether coding practices can be learned automatically from developer-tagged examples instead of being manually converted into linter rules. The authors use CodeBERT, a state-of-the-art ML model, to learn linter rules. On balanced synthetic datasets, the classifier achieves high precision and recall. However, on real-world unbalanced codebases, recall remains excellent but precision drops severely, limiting practical usability.

arXiv ·
· January 24, 2023