Skip to content

Commit

Permalink
Add CBO to graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ccal2 committed Aug 10, 2023
1 parent fea5c63 commit a3c089f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public class MetricsCollector {
private func addTypeNode(for typeNode: TypeNode, toGraph graph: inout String, withMetrics: Bool) {
graph.append("\t\(typeNode.identifier)(\"#nbsp;\(typeNode.identifier)#nbsp;")
if let metrics = report.classes[typeNode.identifier]?.metrics, withMetrics {
graph.append("<br><br>#nbsp;NOC = \(metrics.numberOfChildren)<br>#nbsp;DIT = \(metrics.depthOfInheritance)<br>#nbsp;WMC = \(metrics.weightedMethodsPerClass)<br>#nbsp;LCOM = \(metrics.lackOfCohesionInMethods)<br>#nbsp;RFC = \(metrics.responseForAClass)")
graph.append("<br><br>#nbsp;NOC = \(metrics.numberOfChildren)<br>#nbsp;DIT = \(metrics.depthOfInheritance)<br>#nbsp;WMC = \(metrics.weightedMethodsPerClass)<br>#nbsp;LCOM = \(metrics.lackOfCohesionInMethods)<br>#nbsp;RFC = \(metrics.responseForAClass)<br>#nbsp;CBO = \(metrics.couplingBetweenObjectClasses)")
}
graph.append("\")\n")

Expand Down

0 comments on commit a3c089f

Please sign in to comment.