Skip to content

feat(opencode): add dotnet formatter#16754

Open
workedbeforepush wants to merge 4 commits intoanomalyco:devfrom
workedbeforepush:feat/formatter-dotnet-format
Open

feat(opencode): add dotnet formatter#16754
workedbeforepush wants to merge 4 commits intoanomalyco:devfrom
workedbeforepush:feat/formatter-dotnet-format

Conversation

@workedbeforepush
Copy link
Contributor

Issue for this PR

Closes #16435

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

  • add formatter dotnet-format support for .NET files
  • resolve the nearest .NET project or solution and run dotnet format from that directory with file-scoped includes
  • document the formatter and add config support for passing formatter args (e.g. to change severity)

How did you verify your code works?

  • tested a real C# file edit in a test project
  • confirmed OpenCode reformatted the file and logged ["dotnet","format","DotNetFormatter.csproj","--include","Program.cs","--severity","info"]

Screenshots / recordings

No UI changes made.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]:Add dotnet formatter

1 participant