-
Notifications
You must be signed in to change notification settings - Fork 215
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
C# analyzer and formatting #215
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.
Looks good, but seems there is still a few warnings to fix, making CI fail
// cts is canceled by Ctrl+C or a shutdown request. | ||
// With C# 7.1 and up, you should make Main async and call: await Task.Delay(-1, cts.Token) | ||
cts.Token.WaitHandle.WaitOne(); | ||
// cts is canceled by Ctrl+C or a shutdown request. |
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.
We should add a TODO or issue to fix this C# 7.1 is quite old.
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 opened an issue
Probably because we didn't install the 3.8.0-alpha package, and it cannot be found in any of the default repositories. |
Still various things to fix:
<AnalysisMode>All</AnalysisMode>
causes many warningsI tried to add dotnet format as a separate workflow but it failed to restore packages.