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

Add option to format generated code files. #673

Merged
merged 2 commits into from May 12, 2020

Conversation

JoeRobich
Copy link
Member

Resolves #670

new Option(new[] { "--include-generated" }, Resources.Inlcude_generated_code_files_in_formatting_operations)
{
Argument = new Argument<bool>(),
IsHidden = true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked it as hidden because I don't expect this to be super common and I didn't want to add more to the help screen. I can likely be talked down from this stance.

src/Program.cs Outdated
@@ -55,6 +55,11 @@ private static async Task<int> Main(string[] args)
{
Argument = new Argument<string?>() { Arity = ArgumentArity.ExactlyOne }
},
new Option(new[] { "--include-generated" }, Resources.Inlcude_generated_code_files_in_formatting_operations)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
new Option(new[] { "--include-generated" }, Resources.Inlcude_generated_code_files_in_formatting_operations)
new Option(new[] { "--include-generated" }, Resources.Include_generated_code_files_in_formatting_operations)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh. thanks

@JoeRobich JoeRobich merged commit 9a8a070 into dotnet:master May 12, 2020
@JoeRobich JoeRobich deleted the include-generated branch March 5, 2021 21:02
vdurante pushed a commit to vdurante/format that referenced this pull request Feb 29, 2024
Add option to format generated code files.
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 this pull request may close these issues.

Allow running on generated code
3 participants