-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Style Checking for Core #7581
Style Checking for Core #7581
Conversation
a812edd
to
319b99e
Compare
@@ -43,7 +43,7 @@ internal sealed class HttpPipelineEventSource : EventSource | |||
|
|||
private HttpPipelineEventSource() : base(EventSourceName) { } | |||
|
|||
internal static readonly HttpPipelineEventSource Singleton = new HttpPipelineEventSource(); | |||
internal static readonly HttpPipelineEventSource s_singleton = new HttpPipelineEventSource(); |
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.
This needs to be a property.
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.
Fixed
@@ -45,8 +47,10 @@ public async Task UpdateStatusAsync() | |||
var testResult = 100; | |||
var testResponse = new MockResponse(200); | |||
|
|||
var operation = new TestOperation<int>("operation-id", TimeSpan.FromMilliseconds(10), testResult, testResponse); | |||
operation.UpdateCalled = () => { updateCalled++; }; | |||
var operation = new TestOperation<int>("operation-id", TimeSpan.FromMilliseconds(10), testResult, testResponse) |
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.
This expanded 2 lines into 4, what controls this behavior?
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.
This is due to dotnet_style_object_initializer = true:suggestion
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.
I guess it's fine, fix the HttpPipelineEventSource s_singleton
and I think everything else is ok.
319b99e
to
1cac0f9
Compare
/azp run net - core - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
@chidozieononiwu what was the reason for the build failure? Can you link the issue please? |
Its due to this issue #7490 |
1cac0f9
to
faadce8
Compare
Update .editorconfig from dotnet/corefx /.editorconfig
Fix code style to adhere to editorconfig rules