Skip to content

Commit 681bd56

Browse files
committed
Interface name check
1 parent 5b463c3 commit 681bd56

File tree

4 files changed

+2
-88
lines changed

4 files changed

+2
-88
lines changed

src/Source.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<Rule Id="SA1216" Action="None" />
156156
<Rule Id="SA1217" Action="None" />
157157
<Rule Id="SA1300" Action="None" />
158-
<Rule Id="SA1302" Action="None" />
158+
<Rule Id="SA1302" Action="Warning" />
159159
<Rule Id="SA1303" Action="None" />
160160
<Rule Id="SA1304" Action="None" />
161161
<Rule Id="SA1306" Action="None" />

test/Microsoft.ML.CodeAnalyzer.Tests/InterfaceNameTest.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

tools-local/Microsoft.ML.CodeAnalyzer/InterfaceNameAnalyzer.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

tools-local/Microsoft.ML.CodeAnalyzer/NameFixProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class NameFixProvider : CodeFixProvider
3232
private const string PrivateTitle = "Fix name";
3333

3434
private static ImmutableArray<string> _fixable = ImmutableArray.Create(
35-
NameAnalyzer.PrivateFieldName.Id, NameAnalyzer.GeneralName.Id, InterfaceNameAnalyzer.Id,
35+
NameAnalyzer.PrivateFieldName.Id, NameAnalyzer.GeneralName.Id,
3636
ParameterVariableNameAnalyzer.Id, TypeParamNameAnalyzer.Id);
3737
private static ImmutableHashSet<string> _fixableSet = ImmutableHashSet<string>.Empty.Union(_fixable);
3838

0 commit comments

Comments
 (0)