News for hackers. Stuff that matters.
Re:C# Pattern Matching by stult on Wednesday February 05, 2020 @12:12AM (#22244221)
My only complaint is I can’t ignore auto-gen’d code like EF migrations in dotCover, so my unit test coverage looks terrible. It doesn’t help that I write terrible unit tests, but still!
Re:C# Pattern Matching by mtone on Wednesday February 05, 2020 @01:38AM (#22244535)
I run a little powershell script on build that adds the [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] attribute to generated classes in certain folders.

https://gist.github.com/mtone/aded2ff636cb6dd9d428cf5800f344...

Funnily, I have no clue how to setup a build script in Rider, did that in VS (Rider do run it).

Re:C# Pattern Matching by stult on Wednesday February 05, 2020 @09:46AM (#22247044)
Holy crap you've made my job infinitely easier. Thank you!