Typo.Analyzers 0.1.1

dotnet add package Typo.Analyzers --version 0.1.1
                    
NuGet\Install-Package Typo.Analyzers -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Typo.Analyzers" Version="0.1.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Typo.Analyzers" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Typo.Analyzers">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Typo.Analyzers --version 0.1.1
                    
#r "nuget: Typo.Analyzers, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Typo.Analyzers@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Typo.Analyzers&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Typo.Analyzers&version=0.1.1
                    
Install as a Cake Tool

Typo.Analyzers

Roslyn analyzers for copy-paste and typo bugs that the common open-source .NET analyzers don't cover. They load in Visual Studio 2026 and every .NET 10 SDK, whatever framework the project targets.

Rules

Each ID links to examples on GitHub.

ID Finds Severity
TYPO0001 Identical sub-expressions Warning
TYPO0002 Value compared with itself Warning
TYPO0003 Condition repeated in an if-else chain Warning
TYPO0004 if statement repeats the condition of an earlier one Warning
TYPO0005 Condition already checked by an enclosing if Warning
TYPO0006 Both branches are identical Warning
TYPO0007 Two branches do the same thing Warning
TYPO0008 Value overwritten before it is used Warning
TYPO0009 Loop always reads the same element Warning
TYPO0010 Comparison with a string of the wrong case Warning
TYPO0011 Probable unedited copy in a sequence of similar lines Info
TYPO0012 Probable unedited copy in a pair of similar lines Info
TYPO0013 Comparison operand repeated on the other side Info
TYPO0014 Condition checks the source of the variable just assigned Info

Options

TYPO0012 reads one option from .editorconfig, which limits where it looks for pairs:

[*.cs]
TYPO0012.scan = declarations, arguments

The values are statements, declarations, initializers, conditions and arguments, and the default is all five.

Building with -p:WarningLevel=0 hides every analyzer diagnostic, these included. The README lists the known gaps.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 45 11/13/2026
0.1.0 99 11/4/2026