LintEval: Benchmarking LLMs on Linter-Guided File Refactoring

Tongwei Deng, Jinyu Zhu, Yue Cao, Chenxu Wang, Yanzhen Zou +1 more
10/14/2026
cs.SEcs.CL

No official code found. Best implementation: 6643789wsx/LintEval (4 stars, last commit 2026-10-15).

Abstract

Linters are widely used in code maintenance and real-time IDE editing to surface lint alerts related to performance, style, error-prone, and other patterns in source files. However, existing code benchmarks do not explicitly evaluate linter-guided file refactoring, where models must reduce lint alerts in source files with correct initial functionality while satisfying functionality preservation. We introduce LintEval, a multilingual benchmark for linter-guided file refactoring across C++, Python, and Java, comprising 13,061 programs with correct initial functionality and 171,662 lint alerts extracted using language-specific linters. LintEval jointly evaluates functionality preservation, lint alert reduction, new alert avoidance, and edit minimality. Experiments reveal a persistent trade-off: closed-source commercial models reach up to 90.4% Reduction@P but achieve only 67.1%-68.3% Pass@1, while several open-source small models show low or negative Reduction@P. A controlled fine-tuning study further shows that supervision format matters: refactoring-oriented SFT raises Qwen2.5-Coder-7B Reduction@P from 24.7% to 76.0%. LintEval enables controlled evaluation of models that improve source files under functionality preservation.

View on arXivView PDF

Code Implementations(1)

LintEval: Benchmarking LLMs on Linter-Guided File Refactoring (EMNLP 2026 Findings) — multi-language benchmark for linter-guided refactoring, C++/Python/Java. Data: https://huggingface.co/datasets/deepbreath7/LintEval

40Aug 21, 20266 days agoNOASSERTION
benchmarkclang-tidycode-qualitylintersllm-evaluation+4 more

Similar Papers

Cite this paper

@article{deng2026linteval,
  title  = {LintEval: Benchmarking LLMs on Linter-Guided File Refactoring},
  author = {Tongwei Deng and Jinyu Zhu and Yue Cao and Chenxu Wang and Yanzhen Zou and Bing Xie},
  year   = {2026},
  eprint = {2610.20027},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.20027v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.20027.svg)](https://codeofpaper.com/paper/2610.20027)

Discussion