-
Notifications
You must be signed in to change notification settings - Fork 7
Issues with an offset but without line information are ignored #176
Comments
It appears like InspectCode is not adding the line attribute when the issue is at the very first line. InspectCode gives us the following output: <Project Name="MyProject">
<Issue TypeId="RedundantUsingDirective" File="Src\myfile.cs" Offset="0-48" Message="Using directive is not required by the code and can be safely removed"/>
<Issue TypeId="RedundantUsingDirective" File="Src\myfile.cs" Offset="50-88" Line="2" Message="Using directive is not required by the code and can be safely removed"/>
</Project>
<Project Name="MyProject">
<Issue TypeId="RedundantUsingDirective" File="Src\anotherfile.cs" Offset="0-23" Message="Using directive is not required by the code and can be safely removed"/>
</Project> For the issue on the very first line of a file, the line attribute is not added to the issue. By the way: Any chance we would get this hotfixed in the current 0.9? |
@janniksam Do you think the following logic would work:
I reassigned it to a 0.9.1 milestone |
I dont't think we can use offset, can we? See my XML I dont think we can convert it to a column with the given information. I wouldn't invent column information in this version anyways. |
We should go with this right now:
|
My interpretation of |
I have to disagree. Its based from the start of the entire file. The second issue would be 0 - something to be useful in our case. |
InspectCode can return issues without a line attribute, but with offset information. With current implementation these issues are ignored. For the following report no issues are returned:
The text was updated successfully, but these errors were encountered: