Nitpick 0.1.0

dotnet add package Nitpick --version 0.1.0
                    
NuGet\Install-Package Nitpick -Version 0.1.0
                    
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="Nitpick" Version="0.1.0">
  <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="Nitpick" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Nitpick">
  <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 Nitpick --version 0.1.0
                    
#r "nuget: Nitpick, 0.1.0"
                    
#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 Nitpick@0.1.0
                    
#: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=Nitpick&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Nitpick&version=0.1.0
                    
Install as a Cake Tool

Nitpick

Opinionated C# lint and format rules, enforced at build time: custom Roslyn analyzers, a shared .editorconfig, and ReSharper code cleanup settings. Built for repos where AI agents write most of the code: every rule either fixes itself or fails the build with a message an agent can act on. One style, no configuration.

Install

Add one reference at the repo root. With Central Package Management, in Directory.Packages.props:

<GlobalPackageReference Include="Nitpick" Version="x.y.z" />

Otherwise, in the root Directory.Build.props:

<ItemGroup>
  <PackageReference Include="Nitpick" Version="x.y.z">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
  </PackageReference>
</ItemGroup>

Then build. The install check (NIT9001) fails the build and prints the command that copies Nitpick's repo files: .editorconfig, <solution>.DotSettings, scripts/fix-and-verify.sh and the jb tool entry. Run it, then commit the result.

Use

bash scripts/fix-and-verify.sh <changed files>   # or --all for the whole solution

It formats the files (dotnet format, then ReSharper's cleanupcode), then builds with warnings as errors. On Windows, run it from Git Bash: bash in PowerShell may start WSL, which has no .NET.

Docs

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • 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.0 90 11/14/2026

First release.

- **Only formatting is on.** Nitpick turns rules on one at a time, and none of Microsoft's code-analysis (CA) or code-style (IDE) rules is on yet: the build sets `AnalysisMode=None`, and `.editorconfig` has no category-wide severity line such as `category-Style`. The build adds no warnings beyond the compiler's own. Later releases turn rules on; which ones is Nitpick's choice, with nothing to configure.
- **Formatting:** `scripts/fix-and-verify.sh` formats the files a change touches (`dotnet format`, then ReSharper's `cleanupcode` with Nitpick's settings), then builds with warnings as errors. `--all` does the whole solution.
- **NIT rules:** NIT1001 (don't end async method names with 'Async', with a fixer) is on. NIT2001, NIT2002, NIT3001, NIT3002 and NIT3003 are registered but don't detect anything yet.
- **Install check (NIT9001):** the build fails when Nitpick's repo files (`.editorconfig`, `<solution>.DotSettings`, `scripts/fix-and-verify.sh`, the `jb` tool entry) are missing or differ from this version, and prints the command that syncs them.