Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge metrics does not work properly #7

Open
Kolesar opened this issue Jan 30, 2019 · 0 comments
Open

Merge metrics does not work properly #7

Kolesar opened this issue Jan 30, 2019 · 0 comments

Comments

@Kolesar
Copy link

Kolesar commented Jan 30, 2019

Before merging interesting part of the XML file looks like:

      <file name="/src/Exception/AliasNotFoundExceptionProcessor1.php">
        <class name="ACME\Processor\Exception\AliasNotFoundExceptionProcessor1" namespace="ACME\Processor\Exception">
          <metrics complexity="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" elements="3" coveredelements="0"/>
        </class>
        <line num="12" type="method" name="process" visibility="public" complexity="1" crap="2.00" count="0"/>
        <line num="14" type="stmt" count="0"/>
        <line num="15" type="stmt" count="0"/>
        <metrics loc="16" ncloc="16" classes="1" methods="1" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" elements="3" coveredelements="0"/>
      </file>

and after merging class->metrics disappeared at all and file->metrics is changed with metrics from class->metrics, like this:

      <file name="/src/Exception/AliasNotFoundExceptionProcessor1.php">
        <class name="ACME\Processor\Exception\AliasNotFoundExceptionProcessor1" namespace="ACME\Processor\Exception"/>
        <line num="12" type="method" name="process" visibility="public" complexity="1" crap="2.00" count="0"/>
        <line num="14" type="stmt" count="0"/>
        <line num="15" type="stmt" count="0"/>
        <metrics complexity="0" elements="3" coveredelements="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="0" methods="1" coveredmethods="0" classes="1"/>
      </file>
Repository owner deleted a comment Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Kolesar and others