Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose IncludeGenerated in CodeFormatterOptions #1215

Closed
Vhab opened this issue Mar 23, 2024 · 1 comment · Fixed by #1218
Closed

Expose IncludeGenerated in CodeFormatterOptions #1215

Vhab opened this issue Mar 23, 2024 · 1 comment · Fixed by #1218
Milestone

Comments

@Vhab
Copy link

Vhab commented Mar 23, 2024

Environments:

  • CSharpier Version: 0.27.3
  • Running CSharpier via: API
  • Operating System: Windows
  • .csharpierrc Settings: N/A
  • .editorconfig Settings: N/A

We would like to use CSharpier to format generated code before writing it.
Our generated code includes the <auto-generated> header causing CSharpier to skip it.
It would be nice for IncludeGenerated to be added to CodeFormatterOptions to disable this behavior.

@belav
Copy link
Owner

belav commented Mar 24, 2024

Sounds totally reasonable!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants