Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update all non-major dependencies #37

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Meziantou.DotNet.CodingStandard" Version="1.0.96">
<PackageReference Include="Meziantou.DotNet.CodingStandard" Version="1.0.125">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ public async Task ValidateAsync()
{
if (DiagnosticAnalyzer is null)
{
Assert.True(false, "DiagnosticAnalyzer is not configured");
Assert.Fail("DiagnosticAnalyzer is not configured");
}

if (ExpectedFixedCode is not null && CodeFixProviders.Count == 0)
{
Assert.True(false, "CodeFixProvider is not configured");
Assert.Fail("CodeFixProvider is not configured");
}

if (ExpectedDiagnosticResults is null)
{
Assert.True(false, "ExpectedDiagnostic is not configured");
Assert.Fail("ExpectedDiagnostic is not configured");
}

await VerifyDiagnostic(ExpectedDiagnosticResults).ConfigureAwait(false);
Expand Down Expand Up @@ -65,7 +65,7 @@ private static void VerifyDiagnosticResults(IReadOnlyCollection<Diagnostic> actu
{
var diagnosticsOutput = actualResults.Count != 0 ? FormatDiagnostics(analyzer, [.. actualResults]) : " NONE.";

Assert.True(false, $"Mismatch between number of diagnostics returned, expected \"{expectedCount}\" actual \"{actualCount}\"\r\n\r\nDiagnostics:\r\n{diagnosticsOutput}\r\n");
Assert.Fail($"Mismatch between number of diagnostics returned, expected \"{expectedCount}\" actual \"{actualCount}\"\r\n\r\nDiagnostics:\r\n{diagnosticsOutput}\r\n");
}

for (var i = 0; i < expectedResults.Count; i++)
Expand All @@ -77,7 +77,7 @@ private static void VerifyDiagnosticResults(IReadOnlyCollection<Diagnostic> actu
{
if (actual.Location != Location.None)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected:\nA project diagnostic with No location\nActual:\n{0}",
FormatDiagnostics(analyzer, actual)));
}
Expand All @@ -89,7 +89,7 @@ private static void VerifyDiagnosticResults(IReadOnlyCollection<Diagnostic> actu

if (additionalLocations.Length != expected.Locations.Count - 1)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture,
"Expected {0} additional locations but got {1} for Diagnostic:\r\n {2}\r\n",
expected.Locations.Count - 1, additionalLocations.Length,
Expand All @@ -104,21 +104,21 @@ private static void VerifyDiagnosticResults(IReadOnlyCollection<Diagnostic> actu

if (expected.Id is not null && !string.Equals(actual.Id, expected.Id, StringComparison.Ordinal))
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic id to be \"{0}\" was \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.Id, actual.Id, FormatDiagnostics(analyzer, actual)));
}

if (expected.Severity is not null && actual.Severity != expected.Severity)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic severity to be \"{0}\" was \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.Severity, actual.Severity, FormatDiagnostics(analyzer, actual)));
}

if (expected.Message is not null && !string.Equals(actual.GetMessage(), expected.Message, StringComparison.Ordinal))
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic message to be \"{0}\" was \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.Message, actual.GetMessage(), FormatDiagnostics(analyzer, actual)));
}
Expand Down Expand Up @@ -254,7 +254,7 @@ private async Task<Diagnostic[]> GetSortedDiagnosticsFromDocuments(DiagnosticAna
sourceCode = (await document.GetSyntaxRootAsync().ConfigureAwait(false)).ToFullString();
}

Assert.True(false, "The code doesn't compile. " + string.Join(Environment.NewLine, result.Diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error)) + Environment.NewLine + sourceCode);
Assert.Fail("The code doesn't compile. " + string.Join(Environment.NewLine, result.Diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error)) + Environment.NewLine + sourceCode);
}
}

Expand Down Expand Up @@ -361,7 +361,7 @@ private static void VerifyDiagnosticLocation(DiagnosticAnalyzer analyzer, Diagno
{
if (actualLinePosition.Line + 1 != expected.LineStart)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic to be on line \"{0}\" was actually on line \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.LineStart, actualLinePosition.Line + 1, FormatDiagnostics(analyzer, diagnostic)));
}
Expand All @@ -372,7 +372,7 @@ private static void VerifyDiagnosticLocation(DiagnosticAnalyzer analyzer, Diagno
{
if (actualLinePosition.Character + 1 != expected.ColumnStart)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic to start at column \"{0}\" was actually at column \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.ColumnStart, actualLinePosition.Character + 1, FormatDiagnostics(analyzer, diagnostic)));
}
Expand All @@ -387,7 +387,7 @@ private static void VerifyDiagnosticLocation(DiagnosticAnalyzer analyzer, Diagno
{
if (actualLinePosition.Line + 1 != expected.LineEnd)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic to end on line \"{0}\" was actually on line \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.LineStart, actualLinePosition.Line + 1, FormatDiagnostics(analyzer, diagnostic)));
}
Expand All @@ -398,7 +398,7 @@ private static void VerifyDiagnosticLocation(DiagnosticAnalyzer analyzer, Diagno
{
if (actualLinePosition.Character + 1 != expected.ColumnEnd)
{
Assert.True(false,
Assert.Fail(
string.Format(CultureInfo.InvariantCulture, "Expected diagnostic to end at column \"{0}\" was actually at column \"{1}\"\r\n\r\nDiagnostic:\r\n {2}\r\n",
expected.ColumnStart, actualLinePosition.Character + 1, FormatDiagnostics(analyzer, diagnostic)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="System.Reflection.Metadata" Version="7.0.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="System.Reflection.Metadata" Version="7.0.2" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "8.0.301",
"rollForward": "minor"
}
}
Loading