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

Enforce more code style in Compilers area #47148

Merged
38 commits merged into from
Sep 10, 2020
Merged

Conversation

Youssef1313
Copy link
Member

No description provided.

@Youssef1313 Youssef1313 marked this pull request as ready for review August 26, 2020 15:08
@Youssef1313 Youssef1313 marked this pull request as draft August 26, 2020 15:08
@Youssef1313 Youssef1313 marked this pull request as ready for review August 26, 2020 15:12
@Youssef1313 Youssef1313 marked this pull request as draft August 26, 2020 15:12
@Youssef1313 Youssef1313 changed the title Draft: For testing only. Enforce more code style in Compilers area Aug 26, 2020
.editorconfig Outdated Show resolved Hide resolved
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

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

Please do not make code style changes to the compiler. If you want, you can open an issue where the topic can be discussed and the compiler team can make a decision here

@mavasani
Copy link
Contributor

Please do not make code style changes to the compiler. If you want, you can open an issue where the topic can be discussed and the compiler team can make a decision here

@CyrusNajmabadi I believe this is something that the compiler has already shown interest in - uniform code style enforcement in the Roslyn repo.

@mavasani
Copy link
Contributor

mavasani commented Aug 26, 2020

@Youssef1313 Can you fix each ID using a FixAll application in a single commit instead of separate individual fixes?

@jaredpar
Copy link
Member

I believe this is something that the compiler has already shown interest in - uniform code style enforcement in the Roslyn repo.

Yes we have shown this interest and there are a number of styles we're going to be making uniform.

At the same time though we don't generally accept PRs that are style only. It's actively called out in our Contributing document.

DO NOT submit large code formatting changes without discussing with the team first.

Was this discussed somewhere I missed?

@Youssef1313
Copy link
Member Author

Youssef1313 commented Aug 26, 2020

@Youssef1313 Can you fix each ID using a FixAll application in a single commit instead of separate individual fixes?

Sure. I've selected a FixAll for solution in Visual Studio, but seems to be taking too long.

@Youssef1313
Copy link
Member Author

Yes we have shown this interest and there are a number of styles we're going to be making uniform.

At the same time though we don't generally accept PRs that are style only. It's actively called out in our Contributing document.

@jaredpar Hmm, So I should close the PR? or enforcing styles with .editorconfig will be an exception?

@mavasani
Copy link
Contributor

mavasani commented Sep 2, 2020

Good point @Youssef1313. I'll let @CyrusNajmabadi @333fred chime in, I am personally fine with any option here.

@333fred
Copy link
Member

333fred commented Sep 2, 2020

Alright. The pretty printer (the thing that formats VB code on line commit) is the source of truth here. It says Partial first, so Partial is first. Let's revert the editorconfig change.

@333fred
Copy link
Member

333fred commented Sep 2, 2020

Mostly looking good. The BoundNodeWriter will have to be updated for Correctness to pass: https://github.com/dotnet/roslyn/blob/master/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/BoundNodeClassWriter.cs#L311

@Youssef1313
Copy link
Member Author

@333fred I updated it. This is used for auto-generated code right?

@333fred
Copy link
Member

333fred commented Sep 2, 2020

@333fred I updated it. This is used for auto-generated code right?

Yes, it generates the bound nodes based on the BoundNodes.xml files for each language.

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

LGTM (commit 37). @dotnet/roslyn-compiler for a second review.

@mavasani
Copy link
Contributor

mavasani commented Sep 8, 2020

@dotnet/roslyn-compiler for a second review.

@jcouv jcouv self-assigned this Sep 9, 2020
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 38)

@333fred
Copy link
Member

333fred commented Sep 9, 2020

I'm going to run CI again to make sure that there were no conflicts introduced between the last update and now.

@333fred
Copy link
Member

333fred commented Sep 9, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ghost
Copy link

ghost commented Sep 9, 2020

Hello @333fred!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@ghost ghost merged commit 0d6a84f into dotnet:master Sep 10, 2020
@ghost ghost added this to the Next milestone Sep 10, 2020
@jcouv
Copy link
Member

jcouv commented Sep 10, 2020

Argh, the bot doesn't know to squash... Let's try to squash next time. Thanks

@333fred
Copy link
Member

333fred commented Sep 10, 2020

Thanks Youssef!

@Youssef1313 Youssef1313 deleted the patch-15 branch September 10, 2020 16:19
@dibarbet dibarbet modified the milestones: Next, 16.8.P4 Sep 22, 2020
This pull request was closed.
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.

9 participants