Skip to content

Commit b17a349

Browse files
authored
Merge pull request #3266 from sharwell/update-references
Update references
2 parents bc00245 + e30b94c commit b17a349

File tree

10 files changed

+22
-15
lines changed

10 files changed

+22
-15
lines changed

StyleCop.Analyzers/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
<ItemGroup>
4646
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
4747
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.46" PrivateAssets="all" />
48-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.205" PrivateAssets="all" />
48+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.304" PrivateAssets="all" />
4949
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.0" PrivateAssets="all" />
50-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.8.0-5.final" PrivateAssets="all" />
50+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.8.0" PrivateAssets="all" />
5151
</ItemGroup>
5252

5353
<!-- C# Compiler -->
5454
<ItemGroup>
55-
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.8.0-5.final" PrivateAssets="all" />
55+
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.8.0" PrivateAssets="all" />
5656
</ItemGroup>
5757

5858
<!-- Public API -->

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/Helpers/FixAllContextHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic
5555
{
5656
var projectDiagnostics = await GetAllDiagnosticsAsync(fixAllContext, projectToFix).ConfigureAwait(false);
5757
diagnostics.TryAdd(projectToFix.Id, projectDiagnostics);
58-
}, fixAllContext.CancellationToken);
58+
},
59+
fixAllContext.CancellationToken);
5960
}
6061

6162
await Task.WhenAll(tasks).ConfigureAwait(false);

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/MaintainabilityRules/SA1404CodeFixProvider.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
5050
CodeAction.Create(
5151
MaintainabilityResources.SA1404CodeFix,
5252
token => AddJustificationToAttributeAsync(context.Document, root, attribute),
53-
nameof(SA1404CodeFixProvider) + "-Add"), diagnostic);
53+
nameof(SA1404CodeFixProvider) + "-Add"),
54+
diagnostic);
5455
return;
5556
}
5657

@@ -60,7 +61,8 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
6061
CodeAction.Create(
6162
MaintainabilityResources.SA1404CodeFix,
6263
token => UpdateValueOfArgumentAsync(context.Document, root, argument),
63-
nameof(SA1404CodeFixProvider) + "-Update"), diagnostic);
64+
nameof(SA1404CodeFixProvider) + "-Update"),
65+
diagnostic);
6466
return;
6567
}
6668
}

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/OrderingRules/SA1206CodeFixProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ private static SyntaxTokenList FullySortModifiers(SyntaxTokenList modifiers)
9595
return AdjustTrivia(
9696
accessModifiers
9797
.Concat(staticModifiers)
98-
.Concat(otherModifiers), modifiers);
98+
.Concat(otherModifiers),
99+
modifiers);
99100
}
100101

101102
/// <summary>

StyleCop.Analyzers/StyleCop.Analyzers.CodeGeneration/StyleCop.Analyzers.CodeGeneration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0-5.final" />
19+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" />
2020
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160" PrivateAssets="all" />
2121
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[3.1.0]" />
2222
</ItemGroup>

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/StyleCop.Analyzers.Test.CSharp7.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.8.2" />
2121
<PackageReference Include="xunit" Version="2.4.1" />
2222
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="all" />
2323
</ItemGroup>

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp8/StyleCop.Analyzers.Test.CSharp8.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.6.0" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.6.0" />
2121
<PackageReference Include="xunit" Version="2.4.1" />
2222
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="all" />
2323
</ItemGroup>

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp9/StyleCop.Analyzers.Test.CSharp9.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.8.0-5.final" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" />
2121
<PackageReference Include="xunit" Version="2.4.1" />
2222
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="all" />
2323
</ItemGroup>

StyleCop.Analyzers/StyleCop.Analyzers.Test/SpacingRules/SA1011UnitTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ public async Task TestClosingBracketFollowedByNoSpaceAndIncrementOrDecrementOper
259259
{
260260
string validStatament = string.Format(
261261
@"var i = new int[1];
262-
i[0]{0};", operatorText);
262+
i[0]{0};",
263+
operatorText);
263264

264265
await this.TestWhitespaceInStatementOrDeclAsync(validStatament, null, DiagnosticResult.EmptyDiagnosticResults).ConfigureAwait(false);
265266
}
@@ -271,11 +272,13 @@ public async Task TestClosingBracketFollowedBySpaceAndIncrementOrDecrementOperat
271272
{
272273
string invalidStatament = string.Format(
273274
@"var i = new int[1];
274-
i[0] {0};", operatorText);
275+
i[0] {0};",
276+
operatorText);
275277

276278
string fixedStatament = string.Format(
277279
@"var i = new int[1];
278-
i[0]{0};", operatorText);
280+
i[0]{0};",
281+
operatorText);
279282

280283
DiagnosticResult expected = Diagnostic().WithLocation(8, 16).WithArguments(" not", "followed");
281284

StyleCop.Analyzers/StyleCop.Analyzers.Test/StyleCop.Analyzers.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.CodeAnalysis" Version="1.3.2" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="1.3.2" />
2121
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" Version="1.0.1-beta1.20559.1" />
2222
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="16.1.8" />
2323
<PackageReference Include="System.ValueTuple" Version="4.5.0" />

0 commit comments

Comments
 (0)