Corniel Nobel
Corniel Nobel
### Description Sorting elements in a list should be meaningful. The method `List.Sort()` should therefor only be called if `T` implements `IComparable`. Obviously, this rule should not apply to `List.Sort(IComparer)`,...
### Description When Microsoft invented .NET the decided it would be nice if existing VB6 (and earlier versions too) of Visual Basic could smoothly convert. Therefor the created some helper...
### Description A constructor should initialize the instance of the class it belongs to, but nothing else. ### Expected behavior ``` C# public class MyClass { public MyClass(SomeClass input) {...
### Description Rule: S4039 Explicit implementations of an interface are sometimes the only way deal with conflicting contracts: ### Repro steps ``` C# public class S4039 : S4039Double, I4039Int {...
Please update the NuSpec file of the package, using a `` and a `` instead of the `` that has been deprecated for more than 7 years now. ``` XML...
While the build task has been successfully fixed, the test reports are (still) failing. An example can be found here: https://github.com/Buildalyzer/Buildalyzer/actions/runs/16364348801
The code responsible for setting up the MSBuild or dotnet command was both hard to read, and untestable in isolation. With this PR both issues are solved. It should allow...
With #296 we publicly exposed all `BuildEventArgs` collected during a build. With this PR I implemented an alternative `EventProcssor` that processes the `BuildEventArgs` afterwards. This allows scenarios as desired by...
Trying to open the archive [adressen.tar.xz](https://github.com/LJPc-solutions/Nederlandse-adressen-en-postcodes/raw/refs/heads/main/adressen.tar.xz) with the following code did not seem to recognize this file: ``` C# using var stream = new FileStream("path/to/locally/stored"); var archive = TarArchive.Open(load); var...
### Description When building in DEBUG Mode, I (consistently) get the following error: > error CS2012: Cannot open 'C:\code\sonar-dotnet\analyzers\src\SonarAnalyzer.SourceGenerators\obj\Debug\netstandard2.0\Internal.SonarAnalyzer.SourceGenerators.dll' for writing -- The process cannot access the file 'C:\code\sonar-dotnet\analyzers\src\SonarAnalyzer.SourceGenerators\obj\Debug\netstandard2.0\Internal.SonarAnalyzer.SourceGenerators.dll' because...