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

Style Checking for Core #7581

Merged
merged 1 commit into from
Sep 13, 2019

Conversation

chidozieononiwu
Copy link
Member

Update .editorconfig from dotnet/corefx /.editorconfig
Fix code style to adhere to editorconfig rules

@chidozieononiwu chidozieononiwu force-pushed the StyleCheckingForCore branch 2 times, most recently from a812edd to 319b99e Compare September 12, 2019 21:16
@@ -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();
Copy link
Contributor

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.

Copy link
Member Author

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)
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

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.

@chidozieononiwu
Copy link
Member Author

/azp run net - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pakrym
Copy link
Contributor

pakrym commented Sep 13, 2019

@chidozieononiwu what was the reason for the build failure? Can you link the issue please?

@chidozieononiwu
Copy link
Member Author

@chidozieononiwu Dozie Ononiwu FTE what was the reason for the build failure? Can you link the issue please?

Its due to this issue #7490

@chidozieononiwu chidozieononiwu merged commit f15d756 into Azure:master Sep 13, 2019
@chidozieononiwu chidozieononiwu deleted the StyleCheckingForCore branch September 13, 2019 20:59
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.

2 participants