C# Language Support

Summary

FeatureStatusNotes
MaintainabilityComplexity, duplication, code smells
Custom checks
Security scanningAppSec, dependencies, and secrets
Code metrics
Code coverage

Details

Maintainability
ComplexityAka cognitive complexity
Cyclomatic complexity
Identical code duplication
Similar code duplication
Code smells
Custom checks
Semgrep
ripgrep
Security scanning
GitleaksSecrets scanning
SemgrepAppSec (SAST)
TrivyDependency scanning (SCA) for NuGet
TruffleHogSecrets scanning
Code coverage
Cobertura coverage format

File extensions

By default, C# files are defined as:

[file_types.csharp]
globs = ["*.cs"]

These patterns can be overridden from qlty.toml.

Supported C# versions

We officially support C# 8+ and later for maintainability checks and code coverage. Each plugin may have its own version requirements.