Method of analyzing computer source code
First Claim
1. A method of analyzing computer source code having characteristics of maintainability, portability, and style and being organized as plural hierarchical program levels, to detect noncompliance with a predefined criterion relating to at least one of the characteristics, comprising:
- defining a source code trigger condition relating to the predefined criterion;
assigning the source code trigger condition to a condition class corresponding to one of the hierarchical program levels;
defining in a selected programming language a criterion support program that supports the predefined criterion;
directing a computer to review the computer source code to determine whether the source code trigger condition is present therein; and
whenever the source code trigger condition is present in the computer source code, executing the criterion support program to support maintenance of the predetermined criterion in the computer source code.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of analyzing computer source code provides a determination of the extent to which the source code complies with guidelines relating to, for example, style, maintainability, and portability. The method includes defining a Boolean expression (12) that is assigned a TRIGGER logic state in accordance with the presence in the source code of a condition relating to a particular guideline. A guideline support computer program is also defined (14) and is executed whenever the Boolean expression is assigned the TRIGGER logic state. The guideline support program can perform a variety of operations including notification of noncompliance with the predefined guideline.
-
Citations
10 Claims
-
1. A method of analyzing computer source code having characteristics of maintainability, portability, and style and being organized as plural hierarchical program levels, to detect noncompliance with a predefined criterion relating to at least one of the characteristics, comprising:
-
defining a source code trigger condition relating to the predefined criterion; assigning the source code trigger condition to a condition class corresponding to one of the hierarchical program levels; defining in a selected programming language a criterion support program that supports the predefined criterion; directing a computer to review the computer source code to determine whether the source code trigger condition is present therein; and whenever the source code trigger condition is present in the computer source code, executing the criterion support program to support maintenance of the predetermined criterion in the computer source code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
Specification