Skip to content

Commit 4ab8601

Browse files
author
Per Kops
committed
feat: introduce OptionsProjectFrameworkMapping on OptionsFile with a list of ProjectFrameworkMappings
1 parent 05d0dcc commit 4ab8601

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Atc.CodingRules.Updater.CLI/Models/Options/OptionsFile.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public class OptionsFile
1818

1919
public OptionsMappings Mappings { get; set; } = new();
2020

21+
[SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "OK.")]
22+
public IList<OptionsProjectFrameworkMapping> ProjectFrameworkMappings { get; set; } = [];
23+
2124
public bool HasMappingsPaths()
2225
=> Mappings.HasMappingsPaths();
2326

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Atc.CodingRules.Updater.CLI.Models.Options;
2+
3+
public class OptionsProjectFrameworkMapping
4+
{
5+
public string Name { get; set; } = string.Empty;
6+
7+
public ProjectFrameworkType Type { get; set; }
8+
}

0 commit comments

Comments
 (0)