# dotnet/codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles

Repository: https://github.com/dotnet/codeformatter
Canonical: https://ross.abutalabs.com/products/codeformatter
Language: C#
License: MIT
License Family: permissive
Archived: true
Last push: 2022-07-11T17:29:55+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4256, "days_push": 1514, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1223, forks 239 (observed 2026-08-28T04:04:02.754619+00:00)

## What it is
CodeFormatter is a command-line tool that uses Roslyn to automatically rewrite C# source code to follow the .NET team's coding style rules. The repository is archived and replaced by dotnet/format.

## Use cases
- automatically format c# code to match dotnet coding style
- rewrite source files using roslyn
- convert mstest tests to xunit
- enforce copyright headers on c# files

## When to choose
- you need to apply the .NET team's legacy coding style to C# projects
- you want to bulk-convert MSTest tests to xUnit

## When to avoid
- you want a maintained formatter - use dotnet/format instead
- you work on non-Windows platforms or modern .NET SDK projects
- you need configurable formatting rules

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: formatter, parser, developer-tools
- domain: developer-tools, programming-languages, parsers
- platform: windows, dotnet, cli
- tags: roslyn, code-style, csharp, archived, dotnet-format-successor

## Member repositories
- dotnet/codeformatter (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:02.754619+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:32.034819+00:00, confidence not recorded.
  - readme: https://github.com/dotnet/codeformatter (fetched 2026-08-28T04:04:02.754619+00:00, sha c0028563bb92)
- Data as of 2026-08-30T08:39:29.467469+00:00.
