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

GH88 fully qualified classname in summary report #293

Merged

Conversation

manuelpichler
Copy link
Contributor

This adds the attribute fqname to class entries in the summary report. This attribute will contain the full namespaced name of a class, when it is declared within a namespace.

<?xml version="1.0" encoding="UTF-8"?>
<metrics generated="2015-09-23T06:23:41" pdepend="@package_version@">
  <files>
    <file name=""/>
  </files>
  <package name="pkg1" loc="42" ncloc="23">
    <class fqname="pkg1\FooBar" name="FooBar" start="10" end="29" loc="9" ncloc="7">
      <file name=""/>
      <method name="x" start="23" end="23" loc="101" ncloc="99"/>
      <method name="y" start="24" end="28" loc="90" ncloc="80"/>
    </class>
    <function name="foo" start="4" end="8" loc="50" ncloc="45">
      <file name=""/>
    </function>
  </package>
</metrics>

But it will only contain the local class name when it is defined with a package annotation:

<?xml version="1.0" encoding="UTF-8"?>
<metrics generated="2015-09-23T06:23:41" pdepend="@package_version@">
  <files>
    <file name=""/>
  </files>
  <package name="pkg1" loc="42" ncloc="23">
    <class fqname="FooBar" name="FooBar" start="10" end="29" loc="9" ncloc="7">
      <file name=""/>
      <method name="x" start="23" end="23" loc="101" ncloc="99"/>
      <method name="y" start="24" end="28" loc="90" ncloc="80"/>
    </class>
    <function name="foo" start="4" end="8" loc="50" ncloc="45">
      <file name=""/>
    </function>
  </package>
</metrics>

Closes #88 and closes #141

@manuelpichler manuelpichler merged commit 69119f3 into master Jan 19, 2017
@manuelpichler manuelpichler deleted the GH88-fully-qualified-classname-in-summary-report branch January 19, 2017 13:19
@manuelpichler manuelpichler restored the GH88-fully-qualified-classname-in-summary-report branch January 19, 2017 14:30
@emirb emirb deleted the GH88-fully-qualified-classname-in-summary-report branch November 10, 2017 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Consider output format with real class names Fully-Qualified Classname in Summary XML
1 participant