Skip to content

Exclude bin/ and obj/ directory content from xml formatting #1600

@samtrion

Description

@samtrion

Description

CSharpier appears to include files from the bin/ and obj/ directories when formatting XML files. These directories are typically used for compiled or intermediate files and should be excluded by default from formatting operations.

Steps to Reproduce

  1. Run dotnet build -c Release or use a CI workflow that formats all files.
  2. Observe that XML files in bin/ or obj/ directories are being reported as not formatted.

Expected Behavior

CSharpier should automatically ignore any files in the bin/ and obj/ directories, including XML or xml-like files.

Actual Behavior

Files in bin/ and obj/, including XML files, are formatted, which may lead to unnecessary changes and CI noise.

Suggested Fix

Add a default exclusion rule for bin/ and obj/ directories.

Environment

  • CSharpier version: 1.0.1
  • OS: Windows
  • .NET SDK: .NET 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions