fleetlint Policy for a fleet of repositories
v0.9
Getting started

format/configured/dotnet

A formatter is configured

Implements format/configured for dotnet.

Severitywarning
Tiers1, 2
Stacksdotnet
Scopeeach
Kindoutcome
Sourcelibrary v0.6.0
Selected byfleetlint-recommended@v0.6.0

Requirement

dotnet format or CSharpier runs in a hook, the task runner or CI, or the code style is configured (C# style rules in .editorconfig, or a CSharpier configuration) in the project or a parent directory. Another formatter is added with accept:.

Why

Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.

Fix

Add dotnet format --verify-no-changes to the lint target and a hook; keep the style rules in .editorconfig.

Agent instruction: Add dotnet format --verify-no-changes to the lint target and the dotnet-format hook, with code style rules in .editorconfig; reformat in a separate commit.

A finding of this rule points at .editorconfig.

Sources


Generated by fleetlint docs from catalog v0.6.0.