ReSharper CLI marks 'this' as redundant
With the following settings ReSharper CLI still mark 'this' as redundant and wants private instance/static fields to be prefixed with an underscore.
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/ThisQualifier/INSTANCE_MEMBERS_QUALIFY_MEMBERS/@EntryValue">15</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></s:String>
We are using the latest version of the CLI tools. Is there anything in the above settings that is wrong or are there additional settings that should be added/changed to get the behavior we are looking for?
Please sign in to leave a comment.
Hello Thomas,
Have you checked the same settings file works well in ReSharper?
Thanks!
Yes the same settings work in the ReSharper plugin for visual studio. The current work around we have for this issue is to delete the solution database that the CLI tools use for analysis and to delete the settings cache whenever a new setting is added.