Je suis en train de faire une étude sur NDepend et en regardant les rapports de métriques, j'ai l'a catégorie IL Instruction. Je n'arrive pas à savoir ce que veut dire IL
Le site dit seulement ça mais ne dit pas ce que veut dire l'acronyme IL.NbILInstructions: (defined for application, assemblies, namespaces, types, methods) Notice that the number of IL instructions can vary depending if your assemblies are compiled in debug or in release mode. Indeed compiler's optimizations can modify the number of IL instructions. For example a compiler can add some nop IL instructions in debug mode to handle Edit and Continue and to allow attach an IL instruction to a curly brace. Notice that IL instructions of framework assemblies are not taken account.
Recommendations: Methods where NbILInstructions is higher than 100 are hard to understand and maintain. Methods where NbILInstructions is higher than 200 are extremely complex and should be split in smaller methods (except if they are automatically generated by a tool).
Si quelqu'un sait, merci d'avance.
Partager