-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Sources/Kysect.Configuin.RoslynModels/RoslynStyleRuleInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Kysect.CommonLib.BaseTypes.Extensions; | ||
|
||
namespace Kysect.Configuin.RoslynModels; | ||
|
||
public static class RoslynNameRuleInfo | ||
{ | ||
public static RoslynRuleId RuleId { get; } = new RoslynRuleId("IDE", 1006); | ||
|
||
public static bool IsNameRuleOption(string optionName) | ||
{ | ||
optionName.ThrowIfNull(); | ||
|
||
return optionName.StartsWith("dotnet_naming_rule") | ||
|| optionName.StartsWith("dotnet_naming_symbols") | ||
|| optionName.StartsWith("dotnet_naming_style"); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters