curb_xml_format

Format project, props, targets, solution and nuget.config files. false leaves them unread.

Value Notes
true
false

Default: true

On by default. The first run changes some project files, all of them whitespace, so curb check fails until you run curb format . once. To turn XML formatting off for a whole repository, add a section for the files to the root .editorconfig:

Ini
[*.{csproj,fsproj,vbproj,proj,props,targets,slnx,config}]
curb_xml_format = false
Ini
curb_xml_format = true
Xml
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
      <TargetFramework>net10.0</TargetFramework>
        <Description>
          Kept exactly as written: MSBuild reads this whitespace.
        </Description>
    </PropertyGroup>



  <ItemGroup>
    <PackageReference Include="A"/>
    <PackageReference   Include="B"   Version="1.0" />
  </ItemGroup>
</Project>
Xml
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
        <Description>
          Kept exactly as written: MSBuild reads this whitespace.
        </Description>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="A"/>
    <PackageReference Include="B" Version="1.0" />
  </ItemGroup>
</Project>
Ini
curb_xml_format = false
Xml
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
      <TargetFramework>net10.0</TargetFramework>
        <Description>
          Kept exactly as written: MSBuild reads this whitespace.
        </Description>
    </PropertyGroup>



  <ItemGroup>
    <PackageReference Include="A"/>
    <PackageReference   Include="B"   Version="1.0" />
  </ItemGroup>
</Project>
Xml
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
      <TargetFramework>net10.0</TargetFramework>
        <Description>
          Kept exactly as written: MSBuild reads this whitespace.
        </Description>
    </PropertyGroup>



  <ItemGroup>
    <PackageReference Include="A"/>
    <PackageReference   Include="B"   Version="1.0" />
  </ItemGroup>
</Project>