Skip to content

Commit

Permalink
Merge pull request #5 from michaelwelly/554
Browse files Browse the repository at this point in the history
554
  • Loading branch information
michaelwelly authored Jun 25, 2024
2 parents eb83be1 + 7371ed2 commit 17c0b73
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/org/jpeek/metrics/LCOM4.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ SOFTWARE.
</xsl:variable>
<xsl:variable name="A" select="$attrs_fqn/*/text()"/>
<xsl:variable name="a" select="count($A)"/>
<!-- Считаем только методы (не конструкторы) -->
<xsl:variable name="M" select="methods/method[not(@ctor='true')]" />
<xsl:variable name="m" select="count($M)" />

<!-- Пересчитываем количество соединений методов без конструкторов -->
<xsl:variable name="E">
<xsl:for-each select="$M">
<xsl:variable name="this" select="."/>
<xsl:variable name="this_fullname" select="concat($class_fqn, '.', $this/@name)"/>
<!-- Остальной код остается неизменным -->
</xsl:for-each>
</xsl:variable>
<!-- Ctors are not methods -->
<xsl:variable name="M" select="methods/method[@ctor='false']"/>
<xsl:variable name="m" select="count($M)"/>
Expand Down

0 comments on commit 17c0b73

Please sign in to comment.