Reporter | Michael Sloane (Michael_Sloane) |
---|---|
Created | Nov 11, 2013 8:42:34 PM |
Updated | Apr 17, 2018 10:58:48 AM |
Subsystem | Code Analysis - Solution-wide |
Assignee | Ivan Serduk (IvanSerduk) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | 9.0 |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
I have several cases where ReSharper (within the VisualStudio IDE) is not reporting the following issue:
<IssueType Id="UnusedAutoPropertyAccessor.Global" Category="Potential Code Quality Issues" Description="Auto-implemented property accessor is never used: Non-private accessibility" Severity="WARNING"/>
However, this issue is reported by the ReSharper command line tools.
Both ReSharper in the IDE and the ReSharper command line tools are using the same solution settings file (i.e. <solution_name>.sln.DotSettings)
ReSharper version: 8.0.2000.2660
ReSharper Command Line Tools version: 8.0.0.39
Microsoft Visual Studio Ultimate 2013- Version 12.0.21005.1 REL
My problem is that that the command line tool and IDE tool are inconsistent. If I could disable the warning so that it was not reported by the command line tool, that would be an acceptable solution. Unfortunately, I don't know what comment to insert to disable the warning, since the IDE tool does not show it.
Alternatively, if I had a version of the IDE tool that showed the warning, that would be acceptable too.
The code that is causing the warning is very simple:
public class TodoItem
{
public string ModelName { get; set; }
public string IpAddress { get; set; }
public string Status { get; set; }
}
Status is set, but not used, which is causing the warning to be reported by the Command Line tools. The same warning is not reported by the IDE tool.
<IssueType Id="UnusedAutoPropertyAccessor.Global" Category="Potential Code Quality Issues" Description="Auto-implemented property accessor is never used: Non-private accessibility" Severity="WARNING"/>
However, this issue is reported by the ReSharper command line tools.
Both ReSharper in the IDE and the ReSharper command line tools are using the same solution settings file (i.e. <solution_name>.sln.DotSettings)
ReSharper version: 8.0.2000.2660
ReSharper Command Line Tools version: 8.0.0.39
Microsoft Visual Studio Ultimate 2013- Version 12.0.21005.1 REL
My problem is that that the command line tool and IDE tool are inconsistent. If I could disable the warning so that it was not reported by the command line tool, that would be an acceptable solution. Unfortunately, I don't know what comment to insert to disable the warning, since the IDE tool does not show it.
Alternatively, if I had a version of the IDE tool that showed the warning, that would be acceptable too.
The code that is causing the warning is very simple:
public class TodoItem
{
public string ModelName { get; set; }
public string IpAddress { get; set; }
public string Status { get; set; }
}
Status is set, but not used, which is causing the warning to be reported by the Command Line tools. The same warning is not reported by the IDE tool.