Skip to content

Adding csproj formatting #1278

Adding csproj formatting

Adding csproj formatting #1278

Triggered via pull request September 17, 2024 02:13
Status Failure
Total duration 1m 19s
Artifacts

validate_pull_request.yml

on: pull_request
Run Tests
59s
Run Tests
Check Formatting
11s
Check Formatting
Test CSharpier.MSBuild
1m 9s
Test CSharpier.MSBuild
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 6 warnings
Check Formatting
Process completed with exit code 1.
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> " with a length of 53, but "<!-- comment --> <Root><!-- comment --></Root> " has a length of 47, differs near "<!-" (index 23).
BasicProject: Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L17
Expected normalizedCode to be "<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <LangVersion>4</LangVersion> </PropertyGroup> </Project> " with a length of 123, but "<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup><LangVersion>4</LangVersion></PropertyGroup> </Project> " has a length of 109, differs near "<La" (index 53).
Conditions: Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L27
Expected normalizedCode to be "<Project> <PropertyGroup> <TargetFrameworkVersion Condition=" '$(MSBuildProjectName)' != 'Microsoft.TestCommon' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetCore.Test' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetStandard.Test' " >v4.5.2</TargetFrameworkVersion> </PropertyGroup> </Project> " with a length of 385, but "<Project> <PropertyGroup> <TargetFrameworkVersion Condition=" '$(MSBuildProjectName)' != 'Microsoft.TestCommon' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetCore.Test' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetStandard.Test' "> v4.5.2 </TargetFrameworkVersion> </PropertyGroup> </Project> " has a length of 398, differs near "> " (index 311).
Attributes: Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L12
Expected normalizedCode to be "<Root> <Element Attribute="Value" /> <Element Attribute1____________________="Value" Attribute2____________________="Value" Attribute3____________________="Value" Attribute4____________________="Value" /> <Element AttributeWithLineBreaks=" '$(MSBuildProjectName)' != 'Microsoft.TestCommon' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetCore.Test' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetStandard.Test' " /> </Root> " with a length of 537, but "<Root> <Element Attribute="Value"/> <Element Attribute1____________________="Value" Attribute2____________________="Value" Attribute3____________________="Value" Attribute4____________________="Value"/> <Element AttributeWithLineBreaks=" '$(MSBuildProjectName)' != 'Microsoft.TestCommon' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetCore.Test' AND '$(MSBuildProjectName)' != 'System.Net.Http.Formatting.NetStandard.Test' "/> </Root> " has a length of 527, differs near "/> " (index 37).
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> <LongElement____________________________________________ >TextValue</LongElement____________________________________________ > <ElementWithAttribute Attribute="AttributeValue_______________">TextValue</ElementWithAttribute> <ElementWithAttribute Attribute="AttributeValue________________">TextValue</ElementWithAttribute> <ElementWithAttribute Attribute="AttributeValue_________________" >TextValue</ElementWithAttribute > </Root > ", but "<Root> <Element /><Element></Element><ElementWithText>Text</ElementWithText> <LongElement____________________________________________> TextValue </LongElement____________________________________________> <ElementWithAttribute Attribute="AttributeValue_______________">TextValue</ElementWithAttribute> <ElementWithAttribute Attribute="AttributeValue________________"> TextValue </ElementWithAttribute> <ElementWithAttribute Attribute="AttributeValue_________________"> TextValue </ElementWithAttribute> </Root> " differs near "<El" (index 22).
LongAttributes: Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L37
Expected normalizedCode to be "<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="CoreCompile" Inputs="$(MSBuildAllProjects); @(Compile); @(_CoreCompileResourceInputs); $(ApplicationIcon); $(AssemblyOriginatorKeyFile); @(ReferencePath); @(CompiledLicenseFile); @(LinkResource); @(EmbeddedDocumentation); $(Win32Resource); $(Win32Manifest); @(CustomAdditionalCompileInputs); $(ResolvedCodeAnalysisRuleSet)" Outputs="@(DocFileItem); @(IntermediateAssembly); @(_DebugSymbolsIntermediatePath); $(NonExistentFile); @(CustomAdditionalCompileOutputs)" Returns="@(CscCommandLineArgs)" DependsOnTargets="$(CoreCompileDependsOn)" > <Csc Condition=" '%(_CoreCompileResourceInputs.WithCulture)' != 'true' " AdditionalLibPaths="$(AdditionalLibPaths)" AddModules="@(AddModules)" AdditionalFiles="@(AdditionalFiles)" AllowUnsafeBlocks="$(AllowUnsafeBlocks)" Analyzers="@(Analyzer)" ApplicationConfiguration="$(AppConfigForCompiler)" BaseAddress="$(BaseAddress)" CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)" ChecksumAlgorithm="$(ChecksumAlgorithm)" CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)" CodePage="$(CodePage)" DebugType="$(DebugType)" DefineConstants="$(DefineConstants)" DelaySign="$(DelaySign)" DisabledWarnings="$(NoWarn)" DocumentationFile="@(DocFileItem)" EmitDebugInformation="$(DebugSymbols)" EnvironmentVariables="$(CscEnvironment)" ErrorEndLocation="$(ErrorEndLocation)" ErrorLog="$(ErrorLog)" ErrorReport="$(ErrorReport)" Features="$(Features)" FileAlignment="$(FileAlignment)" GenerateFullPaths="$(GenerateFullPaths)" HighEntropyVA="$(HighEntropyVA)" KeyContainer="$(KeyContainerName)" KeyFile="$(KeyOriginatorFile)" LangVersion="$(LangVersion)" LinkResources="@(LinkResource)" MainEntryPoint="$(StartupObject)" ModuleAssemblyName="$(ModuleAssemblyName)" NoConfig="true" NoLogo="$(NoLogo)" NoStandardLib="$(NoCompilerStandardLib)" NoWin32Manifest="$(NoWin32Manifest)" Optimize="$(Optimize)" Deterministic="$(Deterministic)" PublicSign="$(PublicSign)" OutputAssembly="@(IntermediateAssembly)" PdbFile="$(PdbFile)" Platform="$(PlatformTarget)" Prefer32Bit="$(Prefer32Bit)" PreferredUILang="$(PreferredUILang)" ProvideCommandLineArgs="$(ProvideCommandLineArgs)" References="@(ReferencePath)" ReportAnalyzer="$(ReportAnalyzer)" Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)" ResponseFiles="$(CompilerResponseFile)" RuntimeMetadataVersion="$(RuntimeMetadataVersion)" SkipCompilerExecution="$(SkipCompilerExecution)" Sources="@(Compile)" SubsystemVersion="$(SubsystemVersion)" TargetType="$(OutputType)" ToolExe="$(CscToolExe)" ToolPath="$(CscToolPath)" TreatWarningsAsErrors="$(TreatWarningsAsErrors)" UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)" UseSharedCompilation="$(UseSharedCompilation)" Utf8Output="$(Utf8Output)" VsSessionGuid="$(VsSessionGuid)" WarningLevel="$(WarningLevel)" WarningsAsErrors="$(WarningsAsErrors)" WarningsNotAsErrors="$(WarningsNotAsErrors)" Win32Icon="$(ApplicationIcon)" Win32M
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/