PL/I custom rule templates
Use the PL/I custom rule templates to create custom rules for PL/I code reviews.
- Avoid data item names longer than the specified number of characters
- Use this template to flag data item names that are longer than the specified number of characters. Enter the number of characters as a parameter to this template.
- Avoid nesting DO, BEGIN, PROCEDURE, and IF statements deeper than the specified level
- Use this template to flag
DO
,BEGIN
,PROCEDURE
, andIF
statements that are nested deeper than a specified number of levels. Enter the level number as a parameter to this template.If the nesting is more than one level deeper than the specified maximum, then the template flags only the outermost nested
DO
,BEGIN
,PROCEDURE
, orIF
statement. - Avoid using the specified include file
- Use this template to flag statements that refer to a specified include file. Enter the name of the include file as a parameter to this template.
- Follow the specified convention for PL/I file names
- Use this template to flag program file names that
do not match a specified regular expression. Enter the regular expression
as a parameter to this template.
The comparison ignores the file extension of the program name.
- Procedure statements cannot exceed the specified line number limit
- Use this template to flag the lines in a procedure that exceed
the specified number. Enter the number of lines as a parameter to
this template.
Blanks lines are not counted.
- Use DO-END within a THEN, ELSE, WHEN, or OTHERWISE unit
- Use this rule to flag any of the specified types of unit whose
contents are not enclosed in a
DO-END
group.