// code-formatter-comparator

Paste a file, pick a target formatter, and see how far your code drifts from its canonical conventions — with per-rule findings and a consistency score.

Part of the CodeIntel tools roadmap — built for the blog, not for production.

// results

// how-it-works

Detect language

The formatter you pick implies a language and its canonical conventions: indent style, quote style, semicolons, print width, bracket spacing.

Check rules

Twelve deterministic text rules run over your input: indentation, quotes, semicolons, trailing commas, line length, whitespace, and more.

Score

Each finding is weighted by severity and normalized by file size to produce a 0-100 consistency score and a grade.

Compare

A rule-by-rule table shows how Prettier, Black, gofmt, and rustfmt disagree on the same convention.

// limitations