-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Reformat code according to EditorConfig rules #11681
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xtqqczze Please revert changes in .editorconfig. They was needed only locally to allow you to format but we should keep these options as they correspond to our code convention.
(For static test we could use another config file with fewer rules.)
Which rules would you like to see added?
I see many rules in .Net Core and Roslyn .editorconfig-s and we could review them and add some ones to our config. When I added these rules last time I had to remove many because there were a lot of problems. Now the code is cleaner and we can add more rules.
Also please see CodeFactor issues. We need to adjust CodeFactor or formatting options to resolve them.
|
CodeFactor issues are violations of SA1008 due to added space after the We can apply a refactoring to replace the anonymous methods with |
|
@iSazonov This PR disables those rules because it is apparent the code is not already in the prescribed style. We could open a new issue to discuss which rules we want for our code convention? |
75aef8b to
3052d56
Compare
|
rebased to restart CI |
We have over 50000 CodeFactor issues but we do not disable the rules because we don't want add new issues.
We already have Code Conventions. This allows us add any rules to suggest/force the Code Conventions. |
|
@xtqqczze Please resolve merge conflict. |
18570c9 to
e2fea92
Compare
|
@iSazonov rebased and removed commit "Remove duplicate semicolons" This should be part of a seperate PR as the change is unrelated to using the |
|
@iSazonov We should make changes to rules in .editorconfig before creating a new dotnet-format PR. |
|
Please resolve merge conflicts. |
e2fea92 to
c8ffda3
Compare
|
@TravisEz13 rebased |
c8ffda3 to
edab15a
Compare
|
@TravisEz13 rebased, again |
edab15a to
83106fd
Compare
|
|
|
🎉 Handy links: |
PR Summary
Reformat source code with dotnet/format according to rules in the
.editorconfigfile.The following rules were disabled as they resulted in a high number of changes:
To exclude regressions, we could create a new static test:
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.