Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit cafcd66

Browse files
authored
Merge pull request #12 from sharwell/update-stylecop
Update to StyleCop Analyzers 1.1.0-beta004
2 parents c7a19e1 + 6cb2a4f commit cafcd66

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

PublicApiAnalyzer/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<ItemGroup>
5656
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
57-
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="all" />
57+
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004" PrivateAssets="all" />
5858
</ItemGroup>
5959

6060
<ItemGroup>

PublicApiAnalyzer/PublicApiAnalyzer.CodeFixes/Helpers/SpecialTypeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal static class SpecialTypeHelper
2828
[SpecialType.System_String] = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.StringKeyword)),
2929
[SpecialType.System_UInt16] = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.UShortKeyword)),
3030
[SpecialType.System_UInt32] = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.UIntKeyword)),
31-
[SpecialType.System_UInt64] = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ULongKeyword))
31+
[SpecialType.System_UInt64] = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ULongKeyword)),
3232
}.ToImmutableDictionary();
3333

3434
public static bool IsPredefinedType(SpecialType specialType)

PublicApiAnalyzer/PublicApiAnalyzer.Test/ApiDesign/DeclarePublicAPIAnalyzerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void Method() { }
7171
this.CSharpDiagnostic(DeclarePublicAPIAnalyzer.DeclareNewApiRule).WithArguments("Property.set").WithLocation(5, 32),
7272

7373
// Test0.cs(6,17): error RS0016: Symbol 'Method' is not part of the declared API.
74-
this.CSharpDiagnostic(DeclarePublicAPIAnalyzer.DeclareNewApiRule).WithArguments("Method").WithLocation(6, 17)
74+
this.CSharpDiagnostic(DeclarePublicAPIAnalyzer.DeclareNewApiRule).WithArguments("Method").WithLocation(6, 17),
7575
};
7676

7777
await this.VerifyCSharpDiagnosticAsync(source, expected, CancellationToken.None).ConfigureAwait(false);

PublicApiAnalyzer/PublicApiAnalyzer.Test/HelperTests/IndentationHelperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class IndentationHelperTests
9090
new object[] { "\t ", 2, 4, 4 },
9191

9292
// tab followed by 4 spaces
93-
new object[] { "\t ", 2, 4, 4 }
93+
new object[] { "\t ", 2, 4, 4 },
9494
};
9595

9696
private const string TestProjectName = "TestProject";

PublicApiAnalyzer/PublicApiAnalyzer/ApiDesign/DeclarePublicAPIAnalyzer.Impl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private sealed class Impl
6464
private static readonly HashSet<MethodKind> IgnorableMethodKinds = new HashSet<MethodKind>
6565
{
6666
MethodKind.EventAdd,
67-
MethodKind.EventRemove
67+
MethodKind.EventRemove,
6868
};
6969

7070
private readonly ApiData unshippedData;

PublicApiAnalyzer/PublicApiAnalyzer/Helpers/AccessLevel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ internal enum AccessLevel
2424
Internal,
2525

2626
/// <summary>Public access.</summary>
27-
Public
27+
Public,
2828
}
2929
}

PublicApiAnalyzer/PublicApiAnalyzer/Helpers/AccessLevelHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal static class AccessLevelHelper
2222
[AccessLevel.Internal] = "internal",
2323
[AccessLevel.ProtectedInternal] = "protected internal",
2424
[AccessLevel.Protected] = "protected",
25-
[AccessLevel.Private] = "private"
25+
[AccessLevel.Private] = "private",
2626
};
2727

2828
/// <summary>Determines the access level for the given <paramref name="modifiers"/>.</summary>

0 commit comments

Comments
 (0)