I have the following class with const names and property names starting with Default prefix:

public class ComputeInfo
{
    // ReSharper disable InconsistentNaming
    public const string DefaultNetworkName = "default";
    public const int DefaultLinuxDiskSizeGb = 10;
    // ...
    public string DefaultName { get; init; } = string.Empty;

or

internal class DefaultConsole : IConsole
{

All for those names, ReSharper underlines with the "Name ... does not mathch rule ..."

Besides of I would argue why a DefaultNetworkName = "default" constant name is not a good idea, this is not the point...

My question is, where is this rule which prohibits the "Default" prefix is defined? The "Edit ... Rule Settings" dialog has no such a part where I can see anything which related this prohibition

Further diagnostics, thx for @mu88 and @Ben comments:

I cannot reproduce the behavior in any other solution. I tried:

  • using the very same developer machine

  • creating a very same application (Console .NET 8) (no issue)

  • copying all dotsettings files to the new solution/project (no issue)

  • deleting all dotsettings files from the solution/project which exhibits the issue: the issue still remains there, in all the 17 projects in the solution

  • Visual Studio version: 17.8.0

  • Resharper version: 232.0.20231101.132807 built on 2023-11-01

enter image description here

0

There are 0 best solutions below