csharp-styleguide icon indicating copy to clipboard operation
csharp-styleguide copied to clipboard

NI's internal and external C# coding conventions, analyzers and tooling.

Results 7 csharp-styleguide issues
Sort by recently updated
recently updated
newest added

StyleCopAnalyzers version [1.2.0-beta.556](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases) fixes SA1010's conflict with IDE0028, among other issues. We need to update

@jonathanou has seen false positives of the .NET 7 implementation of the CA1508 analyzer in internal codebases. The .NET 8 implementation needs to be tested to see if those issues...

Updating to the latest version of the analyzers (2.0.13) results in several compiler/SA errors. Both @epetersoni and myself have seen at least these errors in our projects: - IDE0008: Use...

The code below should report an NI1017 error but does not because it is in the last section of a ternary operator. Errors in the first value of ternarys are...

bug

After using the C# 9 feature `Top-Level Statements`, there is an error. > error CA1812: < Program >$ is an internal class that is apparently never instantiated. If so, remove...

[SA1313ParameterNamesMustBeginWithLowerCaseLetter](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1313.md) The following is the [official example](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9#record-types) from Microsoft, ```csharp public record Person(string FirstName, string LastName); ``` But SA1313 will complain about it. ![image](https://user-images.githubusercontent.com/61738692/122648103-ca20a980-d127-11eb-8209-dfdaa2948968.png)

`NationalInstruments.Analyzers.Utilities` has many useful extensions for any codebase that wants to write their own custom analyzer/source generators. It would be useful to be able to reference `NationalInstruments.Analyzers.Utilities` as a nuget...