Back to Search Start Over

Automatic Coding Rule Conformance Checking Using Logic Programming.

Authors :
Hutchison, David
Kanade, Takeo
Kittler, Josef
Kleinberg, Jon M.
Mattern, Friedemann
Mitchell, John C.
Naor, Moni
Nierstrasz, Oscar
Pandu Rangan, C.
Steffen, Bernhard
Sudan, Madhu
Terzopoulos, Demetri
Tygar, Doug
Vardi, Moshe Y.
Weikum, Gerhard
Hudak, Paul
Warren, David S.
Marpons, Guillem
Mariño, Julio
Carro, Manuel
Source :
Practical Aspects of Declarative Languages (978-3-540-77441-9); 2008, p18-34, 17p
Publication Year :
2008

Abstract

An extended practice in the realm of Software Engineering and programming in industry is the application of coding rules. Coding rules are customarily used to constrain the use (or abuse) of certain programming language constructions. However, these rules are usually written using natural language, which is intrinsically ambiguous and which may complicate their use and hinder their automatic enforcement. This paper presents some early work aiming at defining a framework to formalise and check for coding rule conformance using logic programming. We show how a certain class of rules - structural rules - can be reformulated as logic programs, which provides both a framework for formal specification and also for automatic conformance checking using a Prolog engine. Some examples of rules belonging to actual, third-party coding rule sets are discussed, along with the corresponding Prolog code. Experimental data regarding the practicality and impact of their application to real-life software projects is presented and discussed. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISBNs :
9783540774419
Database :
Complementary Index
Journal :
Practical Aspects of Declarative Languages (978-3-540-77441-9)
Publication Type :
Book
Accession number :
34019435
Full Text :
https://doi.org/10.1007/978-3-540-77442-6_3