{"ref":"capability:code-metrics","page":"/capabilities/code-metrics","json":"/capabilities/code-metrics.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"code-metrics","name":"Code metrics","domain":"developer-experience","ecosystems":["abap"],"universal":false,"description":"Measuring source code: its size, the complexity of its conditions, the coupling between classes and the cohesion inside one, and showing where those numbers concentrate across a package. Raising findings against a rule is [static analysis](capability:abap-static-analysis).","short":"Measuring size, complexity, coupling and cohesion of source code","core_coverage":{"state":"core-and-community","assessed_at":"2026-09-14","what_core_does":"The Code Metric Tool, program /SDF/CD_CUSTOM_CODE_METRIC, reached from transaction /SDF/CD_CCA, counts lines of code, statements and comments and computes complexity of conditions and complexity weighted by decision depth.","where_it_stops":"At size and complexity. Coupling between objects and cohesion within a class are not among the metrics listed for it.","sources":[{"url":"https://github.com/kseretis/abap-metrics","title":"kseretis/abap-metrics: README","checked":"2026-09-14","quote":"the standard program \"Code Metric Tool (/SDF/CD_CUSTOM_CODE_METRIC)\""},{"url":"https://www.saptechnicalguru.com/codemetric/","title":"Saptechnicalguru.com: ABAP code metric tool","checked":"2026-09-14","quote":"COM: complexity of conditions"}],"relationship":"unassessed","note":"The metric list rests on a community article about the tool; no SAP page describing it was retrieved. How the community entries relate to the tool has not been assessed."},"drafted_with_ai":true},"sap_delivery":{"door":"abap","all":null,"by_flavor":{"standard-abap":null,"abap-cloud":null}},"edges":{"use_cases":[],"shared_tasks":[],"related_tasks":[],"options":[{"ref":"artifact:kseretis-abap-metrics","name":"abap-metrics","json":"/artifacts/kseretis-abap-metrics.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:benjaminweisheit-abap-2-code-charta","name":"BenjaminWeisheit/ABAP-2-CODE-CHARTA","json":"/artifacts/benjaminweisheit-abap-2-code-charta.json","ecosystem":"abap","origin_ring":"independent"}],"samples":[],"explained_by":[],"normative_context":[]}}