Nitpick 0.1.0
dotnet add package Nitpick --version 0.1.0
NuGet\Install-Package Nitpick -Version 0.1.0
<PackageReference Include="Nitpick" Version="0.1.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Nitpick" Version="0.1.0" />
<PackageReference Include="Nitpick"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Nitpick --version 0.1.0
#r "nuget: Nitpick, 0.1.0"
#:package Nitpick@0.1.0
#addin nuget:?package=Nitpick&version=0.1.0
#tool nuget:?package=Nitpick&version=0.1.0
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
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.