Conference Paper

Towards a Structured Specification of Coding Conventions

PDF Online

Authors Elder de Oliveira Rodrigues Jr. Leonardo Montecchi
Coding conventions are a means to improve the reliability of software systems. They can be established for many reasons, ranging from improving the readability of code to avoiding the introduction of security flaws. However, coding conventions often come in the form of textual documents in natural language, which makes them hard to manage and to enforce. Following model-driven engineering principles, in this paper we propose an approach and language for specifying coding conventions using structured models. We ran a feasibility study, in which we applied our language for specifying 215 coding rules from two popular rulesets. The obtained results are promising and suggest that the proposed approach is feasible. However, they also highlight that many challenges still need to be overcome. We conclude with an overview on the ongoing work for generating automated checkers from such models, and we discuss directions for an objective evaluation of the methodology.
DOI 10.1109/PRDC47002.2019.00047
Event 24th IEEE Pacific Rim International Symposium on Dependable Computing (PRDC 2019)
Venue Kyoto, Japan
Date December 1-3, 2019
Pages 168-177
Publisher IEEE
ISBN ELECTRONIC: 978-1-7281-4961-5
ONDEMAND: 978-1-7281-4962-2

© 2017-2019 Leonardo Montecchi