EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Still Manual? Automated Linter Configuration via DSL-Based LLM Compilation of Coding Standards

Zejun Zhang, Yixin Gan, Zhenchang Xing, Tian Zhang, Yi Li, Qinghua Lu, Sherry (Xiwei) Xu, Liming Zhu

Proceedings of the ACM on Software Engineering · 30.06.2026 · 3 (FSE) · 23-45

DOI: 10.1145/3797064 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 30.06.2026. Verfasst von Zejun Zhang und 7 weiteren Autor:innen. Die Arbeit nennt 80 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Coding standards are essential for maintaining consistent and high-quality code across teams and projects. Linters help developers enforce these standards by detecting code violations. However, manual linter configuration is complex and expertise-intensive, and the diversity and evolution of programming languages, coding standards, and linters lead to repetitive and maintenance-intensive configuration work. To reduce manual effort, we propose LintCFG, a domain-specific language (DSL)-driven, LLM-based compilation approach to automate linter configuration generation for coding standards, independent of programming languages, coding standards, and linters. Inspired by compiler design, we first design a DSL to express coding rules in a tool-agnostic, structured, readable, and precise manner. Then, we build linter configurations into DSL configuration instructions. For a given natural language coding standard, the compilation process parses it into DSL coding standards, matches them with the DSL configuration instructions to set configuration names, option names and values, verifies consistency between the standards and configurations, and finally generates linter-specific configurations. Experiments with Checkstyle for Java coding standard show that our approach achieves over 90% precision and recall in DSL representation, with accuracy, precision, recall, and F1-scores close to 70% (with some exceeding 70%) in fine-grained linter configuration generation. Notably, our approach outperforms baselines by over 100% in precision. An ablation study confirms the effectiveness of the main components of our approach. A user study further shows that our approach improves developers’efficiency in configuring linters for coding standards. Finally, we demonstrate the generality of the approach by generating ESLint configurations for JavaScript coding standards, showcasing its broad applicability across other programming languages, coding standards, and linters. We developed a lightweight, general-purpose AI skill, which is publicly available on GitHub

Zitieren

APA

Zhang, Z., Gan, Y., Xing, Z., Zhang, T., Li, Y., Lu, Q., Xu, S. X., & Zhu, L. (2026). Still Manual? Automated Linter Configuration via DSL-Based LLM Compilation of Coding Standards. Proceedings of the ACM on Software Engineering, 3(FSE), 23-45. https://doi.org/10.1145/3797064

Vancouver

Zhang Z, Gan Y, Xing Z, Zhang T, Li Y, Lu Q, et al. Still Manual? Automated Linter Configuration via DSL-Based LLM Compilation of Coding Standards. Proceedings of the ACM on Software Engineering. 2026;3(FSE):23-45. doi:10.1145/3797064

BibTeX
@article{Zhang2026,
  author = {Zhang, Zejun and Gan, Yixin and Xing, Zhenchang and Zhang, Tian and Li, Yi and Lu, Qinghua and Xu, Sherry (Xiwei) and Zhu, Liming},
  title = {Still Manual? Automated Linter Configuration via DSL-Based LLM Compilation of Coding Standards},
  journal = {Proceedings of the ACM on Software Engineering},
  year = {2026},
  volume = {3},
  number = {FSE},
  pages = {23--45},
  doi = {10.1145/3797064}
}
Kostenlos starten →