-
Notifications
You must be signed in to change notification settings - Fork 18
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
Missing root element. #13
Comments
Can you please submit a failing test? I suspect the issue is related to the code you are analyzing. |
i have submited a small MVC web solution, as well as the archimetrics program code. Would this help? are do you need something more specific? Regards, |
Could you not submit a test like this https://github.com/jjrdk/ArchiMetrics/blob/master/ArchiMetrics.Analysis.Tests/CodeMetricsCalculatorTests.cs |
I'm seeing this too, with a malformed XML comment like this being the cause of one of the problems:
Another cause would be an ampersand not properly encoded to
I tried to write failing tests for both these scenarios following the template shown above, but they both pass. Maybe a fix is already in compared with the version on NuGet? |
No activity and not able to reproduce. |
I'm still seeing this issue. I've narrowed it down to Here's a failing unit test that demonstrates the issue by analyzing itself:
|
Thanks for the analysis. From what I gather the '&' causes an invalid documentation xml which causes the exception. What is your suggested behaviour in this situation? |
Yes, basically anything wrong with the XML, including having lines starting with just two forward slashes Anyway, thanks for this awesome library. I've been using it to automate some code metrics gathering, and it is super easy to use. |
PRs are always good, also for having something concrete to discuss. Not sure that returning null is a good fallback. There is actually some documentation content, would it not be better returning the raw string? |
OK, will try to get something done. If returning the raw string is possible that would be even better. |
|
That could work. Since it returns an interface, why not return a FaultMemberDocumentation instance where all the properties just return the raw documentation string? |
yes can do that. I'll try to put together a PR next week. |
Hey team.
This is a great piece of work, and i am finding some real value in it thank you!
I am trying to calculate both the Halstead Metrics as well as Normal code metrics, but everytime i try to to calculate codemetrics on a SyntaxTree i get a "Missing root element" error from an xml parser.
if i only use the halstead metrics then there is no problem and everythings works as expected.
The text was updated successfully, but these errors were encountered: