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

Enable IDE0060 #40461

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Enable IDE0060 #40461

merged 2 commits into from
Mar 2, 2022

Conversation

pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Mar 1, 2022

No description provided.

@pranavkm pranavkm marked this pull request as ready for review March 1, 2022 14:04
@@ -28,7 +28,7 @@ public bool IsEnabled(LogLevel logLevel)
return _provider.IsEnabled;
}

public void Log<TState>(DateTimeOffset timestamp, LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
public void Log<TState>(DateTimeOffset timestamp, LogLevel logLevel, EventId _, TState state, Exception exception, Func<TState, Exception, string> formatter)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the EventId get logged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method turns the log to a string. We could add it to the log, but I'm not super familiar who the consumer is and if changing the format would affect it in any way.

@@ -51,7 +50,7 @@ public void Complete()
}
}

public void Abort(Exception error)
Copy link
Member

Choose a reason for hiding this comment

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

Should the pipe be completed with this exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

- _pipe.Writer.Complete();
+ _pipe.Writer.Complete(error);

Like so?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, would have to look at the usage to see if we want that though.

@Pilchie Pilchie added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 1, 2022
@pranavkm pranavkm merged commit e059629 into dotnet:main Mar 2, 2022
@pranavkm pranavkm deleted the IDE0060 branch March 2, 2022 00:53
@ghost ghost added this to the 7.0-preview3 milestone Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants