methods / formatting
Formatting and hygiene
Normalises layout, spelling and file hygiene so the diff only shows what changed.
When: On every change, before anything else. Almost always autofixable: run the fix, then commit.
64% of scanned repositories run at least one
8 tools detected
Formatting
called for by: any change
Catches: Layout drift that buries the real change in the diff.
| Tool | Languages | Repos | Command seen | Fix | Docs |
|---|---|---|---|---|---|
prettier |
javascript, typescript, yaml, config, docs | 98 | prettier --write . |
autofix | docs |
rustfmt |
rust | 46 | cargo fmt --check |
autofix | docs |
ruff-format |
python | 43 | ruff format . |
autofix | docs |
black |
python | 14 | black ${VENDORED_TYPESHED}/stdlib --config ${VENDORED_TYPESHED}/pyp... |
autofix | docs |
isort |
python | 9 | isort --check-only --diff django tests scripts |
autofix | docs |
gofmt |
go | 7 | go fmt ./... |
autofix | docs |
File hygiene
called for by: ci workflows and configuration files
Catches: Invalid JSON, YAML or TOML, merge markers, trailing whitespace, oversized files.
| Tool | Languages | Repos | Command seen | Fix | Docs |
|---|---|---|---|---|---|
pre-commit-hooks |
any | 33 | pre-commit hook end-of-file-fixer |
autofix | docs |
Spelling
called for by: documentation and comments
Catches: Typos in identifiers, comments and docs.
| Tool | Languages | Repos | Command seen | Fix | Docs |
|---|---|---|---|---|---|
codespell |
any | 22 | codespell |
docs |