Silence IDE0290.
This rule recommends use of primary constructors. Apply the suggestions on simple POCOs, adjusting some to readonly/structs/records at the same time. For more complex classes, the use of primary constructors is more distracting than helpful, so silence the rule. IDEs can still offer fixes for using primary constructors, but it will not show up as a build issue.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
3de6a5fd5a
commit
36660b89e9
@@ -229,22 +229,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
}
|
||||
}
|
||||
|
||||
struct ExtractionCandidate
|
||||
struct ExtractionCandidate(string actor, string key, string value, MiniYamlNodeBuilder node)
|
||||
{
|
||||
public string Filename;
|
||||
public readonly string Actor;
|
||||
public readonly string Key;
|
||||
public readonly string Value;
|
||||
public readonly List<MiniYamlNodeBuilder> Nodes;
|
||||
|
||||
public ExtractionCandidate(string actor, string key, string value, MiniYamlNodeBuilder node)
|
||||
{
|
||||
Filename = null;
|
||||
Actor = actor;
|
||||
Key = key;
|
||||
Value = value;
|
||||
Nodes = [node];
|
||||
}
|
||||
public string Filename = null;
|
||||
public readonly string Actor = actor;
|
||||
public readonly string Key = key;
|
||||
public readonly string Value = value;
|
||||
public readonly List<MiniYamlNodeBuilder> Nodes = [node];
|
||||
}
|
||||
|
||||
static string ToLowerActor(string actor)
|
||||
|
||||
Reference in New Issue
Block a user