Errors and suspicious code fragments in .NET 6 sources

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3046801%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EErrors%20and%20suspicious%20code%20fragments%20in%20.NET%206%20sources%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3046801%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336113iD744768ECD5B4AC1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22TitlePic.png%22%20alt%3D%22%5C%26quot%3BTitlePic.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%5C%26quot%3B%5C%26quot%3B%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%3CP%3E%3CSPAN%3EThe%20.NET%206%20turned%20out%20to%20be%20much-awaited%20and%20major%20release.%20If%20you%20write%20for%20.NET%2C%20you%20could%20hardly%20miss%20such%20an%20event.%20%3A)%26lt%3B%5C%2Fimg%26gt%3B%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20decided%20to%20check%20the%20.NET%20source%20code%20with%20a%20static%20analyzer%20and%20see%20what%20I%20can%20find%20there.%20Copy-paste%20errors%3F%20Forgotten%20parameters%3F%20Anything%20else%3F%20%3B)%26lt%3B%5C%2Fimg%26gt%3B%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20can%20find%20a%20full%20list%20of%20interesting%20errors%20in%20%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fdev.to%2F_sergvasiliev_%2Ferrors-and-suspicious-code-fragments-in-net-6-sources-2md5%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20nofollow%3D%22%22%20noreferrer%3D%22%22%3Ethis%20article%26lt%3B%5C%2FA%26gt%3B.%26lt%3B%5C%2FSPAN%26gt%3B%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3046801%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3E.NET%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Occasional Contributor

TitlePic.png

 

The .NET 6 turned out to be much-awaited and major release. If you write for .NET, you could hardly miss such an event. :)

 

I decided to check the .NET source code with a static analyzer and see what I can find there. Copy-paste errors? Forgotten parameters? Anything else? ;)

 

You can find a full list of interesting errors in this article.

0 Replies