This is a migrated thread and some comments may be shown as answers.

Using directive not required doesn't account for xml doc references

1 Answer 43 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 30 Dec 2011, 05:02 PM
I followed the guidance of a using directive not required message and found myself with a build break because the using directive was satisfying a Category ref in xml doc was using the using directive to satisfy a non-fully qualified type name.

In the C# project settings I have "XML documentation file" set to the XML doc I want generated (to enable the XML doc feature in Visual Studio 2010), I have warning level set to 4 and I have "Treat warnings as errors" set to "All".

In this combination of settings I would expect JustCode to respect the compiler's behavior and not guide me towards a build break.

Robert.

1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 06 Jan 2012, 10:36 AM
Hello,

Thank you for your feedback and sorry for the inconvenience!

Our unused using directives analysis is based on typename usages in C# code, we don't annotate typename usages in xml documentation.

I created a PITS item for it, feel free to give your vote for it - link.

Greetings,
Svetlozar
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Code Analysis
Asked by
Robert
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Share this question
or