Download Software Quality and Coding Rules
Transcript
EGOS-QA-XX-TN-9007 SOFTWARE QUALITY AND CODING RULES Logiscope value is more restrictive (or reasonable). The full list of metrics is provided in Table 2. The last column in the table specified whether the metric is also applicable to Java code. Logiscope aggregated metric Attribute hiding factor (MOOD) ap_ahf Attribute inheritance factor ap_aif (MOOD) Coupling between objects ap_cbo name max value min Applicable to applicability value Java 1 0.7 application No 0.6 0.3 application No 9 application No 2 application No application No Number of Levels in the Call Graph Number of application classes ap_cg_levl Coupling factor (MOOD) Hierarchical Complexity of the Inheritance Graph Number of Levels in the Inheritance Graph Method hiding factor (MOOD) Method inheritance factor (MOOD) Polymorphism factor (MOOD) Rate of class autonomy Average coupling between objects Average of the VG of the application's functions Average size of statements Relative call graph Hierarchical complexity Number of relative call graph levels Relative call graph Structural complexity Relative call graph System testability Coupling between classes Number of dependent methods Lack of cohesion of methods ap_cof ap_inhg_cpx 0.18 2 0.03 application 1 application No Yes ap_inhg_levl 4 1 application Yes ap_mhf ap_mif 0.4 0.8 0.1 application 0.6 application No No ap_pof AUTONOM AVG_CBO 1 100 10 0.3 application 30 class 0 application No No No AVG_VG 5 0 application Yes AVGS cg_hiercpx 7 5 1 funcion 1 funcion No No 12 1 funcion No cg_strucpx 3 0 funcion No cg_testab 1 0 funcion No 0 class 0 class class No No No Weighted Methods per Class Comments frequency Class Comments Frequency Number of destructuring statements Number of out statements Number of nestings cl_wmc COMF COMFclass ct_bran 25 0.99 0.99 0 0 class 0.3 funcion 0.3 class 0 funcion Yes Yes Yes Yes 1 0 funcion funcion Yes Yes 60 12 7 1 funcion 1 funcion 0 class Yes Yes Yes ap_clas cg_levels cl_cobc cl_dep_meth cl_locm 12 6 ct_exit ct_nest Number of paths ct_path Cyclomatic number (VG) ct_vg Number of direct used classes cu_cdused VERSION: 1.0 DRAFT B - 2004-12-01 4 / 30 © COPYRIGHT EUROPEAN SPACE AGENCY 2004