s9

en

name

Complexity patterns

  • a) List of loops
  • b) Backward Goto
  • c) Imbrication levels (3 levels)
  • d) Imbrication levels (4 levels or more)

description

Complex code hides bugs.

Detailed explanation : Parts of program are more complicated than others. This is especially the case when the execution of sequential flow is often cut. This rule searches for loops, backward gotos and high complex instructions nested level.

Level : Optional

errorMessage

  • a) There is a loop in {LOCATION} {STR}
  • b) A Backward Goto was detected at {LOCATION}
  • c) Code at {LOCATION} is too complicated, it should be extracted in a separate routine {STR}
  • d) Code at {LOCATION} is too complicated, it should be extracted in a separate routine {STR}

fr

name

Mesure de la complexité

  • a) Les boucles
  • b) Les sauts en arrière
  • c) Les niveaux d'imbrication (3 niveaux)
  • d) Les niveaux d'imbrication (4 niveaux ou plus)

description

Le code complexe cache des erreurs.

Explication complémentaire : Certaines parties de programmes sont plus complexes que d'autres. C'est particulièrement vrai lorsque le flot d'exécution séquentiel du programme est interrompu. Cette règle recherche certaines causes d'interruption du flot que sont les boucles, les sauts arrière et les niveaux d'imbrications d'instructions complexe trop élevés.

Niveau conseillé : Optionnelle

errorMessage

  • a) Il y a une boucle en {LOCATION} {STR}
  • b) Un saut en arrière a été détecté en {LOCATION}
  • c) Le code en {LOCATION} est trop imbriqué (à découper dans une SR) {STR}
  • d) Le code en {LOCATION} est trop imbriqué (à découper dans une SR) {STR}

it

name

Misura della complessità

  • a) Loop
  • b) Salti all'indietro
  • c) Livelli di nidificazione (3 livelli)
  • d) Livelli di nidificazione (4 o più livelli)

description

Il codice complesso nasconde degli errori.

Spiegazione supplementare: alcune parti dei programmi sono più complesse di altre. Ciò è vero in particolare quando il flusso dell'esecuzione sequenziale del programma si interrompe spesso. Questa regola cerca determinate cause di interruzione del flusso, ovvero i loop, i salti all'indietro e i livelli eccessivi di nidificazione di istruzioni complesse.

Livello consigliato: opzionale

errorMessage

  • a) È stato rilevato un loop in {LOCATION} {STR}
  • b) È stato rilevato un salto all'indietro in {LOCATION}
  • c) Il codice in {LOCATION} è troppo nidificato (spostare in una subroutine) {STR}
  • d) Il codice in {LOCATION} è troppo nidificato (spostare in una subroutine) {STR}

de

name

Komplexitätsmuster

  • a) Schleifen
  • b) Rückwärtssprünge
  • c) Ebenen der Verschachtelung (3 Ebenen)
  • d) Ebenen der Verschachtelung (4 oder mehr Ebenen)

description

In komplexen Programmen können sich Fehler leichter verstecken.

Vertiefende Erklärung : Einige Programmteile sind komplizierter als andere. Dies trifft besonders auf solche zu, bei denen die Ausführung aufeinanderfolgender Prozesse oft unterbrochen wird. Diese Regel sucht nach Schleifen, Rückwärtssprüngen und Kennzahlen der Verschachtelung.

Level : Optional

errorMessage

  • a) Eine Schleife wurde gefunden an der Stelle {LOCATION} mit folgendem Kontext: {STR}
  • b) Ein Rückwärtssprung wurde entdeckt an der Stelle {LOCATION}
  • c) Der Code an der Stelle {LOCATION} ist zu verschachtelt und sollte in ein Hilfsprogramm ausgelagert werden {STR}
  • d) Der Code an der Stelle {LOCATION} ist zu verschachtelt und sollte in ein Hilfsprogramm ausgelagert werden {STR}