Skip to content

Adding csproj formatting #1275

Adding csproj formatting

Adding csproj formatting #1275

Triggered via pull request September 15, 2024 18:39
Status Failure
Total duration 2m 29s
Artifacts

validate_pull_request.yml

on: pull_request
Run Tests
57s
Run Tests
Check Formatting
14s
Check Formatting
Test CSharpier.MSBuild
2m 20s
Test CSharpier.MSBuild
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 6 warnings
Check Formatting
Process completed with exit code 1.
Formats_CSX_File: Src/CSharpier.Tests/CommandLineFormatterTests.cs#L138
Expected context.GetFileContent(unformattedFilePath) to be "#r "Microsoft.WindowsAzure.Storage" public static void Run() { } " with a length of 66, but "#r "Microsoft.WindowsAzure.Storage" public static void Run() { }" has a length of 65, differs near " { " (index 61).
Formats_Overrides_File: Src/CSharpier.Tests/CommandLineFormatterTests.cs#L170
Expected context.GetFileContent(unformattedFilePath) to be "public class ClassName { public int Field; } " with a length of 49, but "public class ClassName { public int Field; }" has a length of 44, differs near " { " (index 22).
Comments: Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L22
Expected normalizedCode to be "<!-- comment --> <Root> <!-- comment --> </Root>", but it has unexpected whitespace at the end.
Elements: Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L32
Expected normalizedCode to be "<Root> <Element /> <Element></Element> <ElementWithText>Text</ElementWithText> <SystemRuntimeSerializationPrimitivesPackageVersion >4.3.0</SystemRuntimeSerializationPrimitivesPackageVersion > <RoslynToolPath Condition=" '$(RoslynToolPath)' == '' " >$(MSBuildThisFileDirectory)..\..\tools\roslynlatest</RoslynToolPath > </Root> " with a length of 371, but "<Root> <Element /> <Element></Element> <ElementWithText>Text</ElementWithText> <SystemRuntimeSerializationPrimitivesPackageVersion >4.3.0</SystemRuntimeSerializationPrimitivesPackageVersion> <RoslynToolPath Condition=" '$(RoslynToolPath)' == '' " >$(MSBuildThisFileDirectory)..\..\tools\roslynlatest</RoslynToolPath> </Root> " has a length of 361, differs near ">4." (index 151).
Should_Support_Override_Config_With_Multiple_Piped_Files: Src/CSharpier.Cli.Tests/CliTests.cs#L320
Expected string to be empty, but found "Error /home/runner/work/csharpier/csharpier/Src/CSharpier.Cli.Tests/bin/Release/net8.0/TestFiles/TooWide.cst - Is an unsupported file type. ".
Run Tests
Process completed with exit code 1.
Check Formatting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Check Formatting
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test CSharpier.MSBuild
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test CSharpier.MSBuild
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/