Issue Details (XML | Word | Printable)

Key: COBOL-31
Type: New Feature New Feature
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: Freddy Mallet
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
COBOL

Rule : detect block of code whose essential complexity is greater than a configurable threshold

Created: 11/Mar/10 04:19 PM   Updated: 06/Apr/10 03:47 PM
Component/s: Checks
Affects Version/s: None
Fix Version/s: None


 Description  « Hide

The essential complexity of the following block of code is for instance 5

IF Y5GDEC-NO-DEM-AS NOT = SPACES       =>1
     IF Y5GDEC-CD-TY-PRD-ASR NOT = 'LA'  =>2
          IF SQLCODE = 100                                   =>3
          ELSE
               IF SQLCODE = 100                              =>4
               ELSE
                    IF CD-ORG-DCI OF DCLV5F00150 NOT = '03'        =>5
                    AND  NOT = '09'
                           titi
                    ELSE
                           tutu
                    END-IF      =>4
               END-IF         =>3
          END-IF            =>2
     END-IF                =>1
END-IF.                   =>0


Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.