Conversation
…ow instead of TimeProvider
That's so strange, I was surprised I got no errors so I added a reference, it wasn't a warning it completely failed the build locally without a I'll look into why those ones don't create errors. |
…teTime.Now usages
johnsimons
left a comment
There was a problem hiding this comment.
Shouldn't we use
dotnet_diagnostic.RS0030.severity = hint
So that devs are aware of it?
Actually, to make sure devs do the right thing, should we use inline pragmas, and not disable it in .editorconfig?
|
Abandoning as it was decided that this analyser did not provide enough value while there are so many exceptions in the project. |
Follow up from #5843
Adds new entries to the
BannedSymbols.txtfile to discourage direct usage of certain date and time properties. Instead, it recommends usingTimeProvideras a replacement.