Skip to main content

Sudsy

Sudsy

A formatter and linter for C#, C/C++, CSS, Dockerfile, EditorConfig, Gitignore, GraphQL, HCL, HTML, INI, JSON, Java, JavaScript/TypeScript, Kotlin, Makefile, Markdown, PHP, PowerShell, Protobuf, Python, Ruby, SQL, Shell, TOML, XML and YAML (JSON includes JSONC; XML covers .csproj, .props, .targets, .config, ...), configured from one sudsy.yaml.

  • Formatting: every layout decision is a named option; presets reproduce the styles of Microsoft, the .NET runtime, Google, CSharpier and Prettier. Debug builds, the tests and the corpus profile check that each result has the same syntax tree (and for YAML the same data) as the input; release builds trust the formatter and do not run that check.
  • Linting: built-in rules for every language, semantic C# rules (types, control and data flow), safe and unsafe fixes, suppression comments, pattern rules in YAML and Wasm plugins (unstable API).
  • Implementation: a Rust core. JSON and YAML are parsed natively and TOML, XML and Markdown by embedded tree-sitter grammars; C# is parsed and analysed by a Roslyn-backed .NET worker that the CLI starts when it needs it.

Measured speed against CSharpier, Prettier, Biome and dprint, with the method and machine: docs/performance/numbers.md.

Install

  • CLI: download the archive for your platform (Linux, Windows or macOS; x64 or arm64) from the GitHub releases page and put the sudsy executable on your PATH. Keep the csharp-worker/ directory beside it.
  • Package managers (same binary, csharp-worker/ included except with cargo-binstall): npm i -D @sudsylint/sudsy, pip install sudsy / uvx sudsy, brew install bingsubandit/sudsy/sudsy, scoop bucket add sudsy https://github.com/bingsubandit/scoop-sudsy && scoop install sudsy, winget install Coox.Sudsy, cargo binstall --git https://github.com/bingsubandit/sudsy sudsy. Setup and publishing: docs/development/ci-release.md.
  • VS Code: install the extension Coox.sudsy. It bundles the CLI and the worker.
  • C# needs the .NET 10 runtime. Every other language works without it.

Quick start

sudsy init --preset csharp/google   # writes a starter sudsy.yaml
sudsy format                           # format the current directory in place
sudsy lint                             # report rule violations
sudsy fix                              # apply fixes, then format
sudsy rules                            # list the rules; `sudsy rules <id>` explains one

In CI, sudsy check runs format --check and lint together and exits 1 when a file is unformatted or a rule reports an error:

sudsy check --format github   # ::error file=...:: annotations in the GitHub Actions log
sudsy check --format sarif > sudsy.sarif   # for code scanning upload

Output formats are human, json, sarif and github. Exit codes and all commands: docs/config/cli.md.

Presets

Presets are ordinary config files; writing their options by hand in sudsy.yaml gives the same output.

Preset Style
csharp/dotnet-runtime The defaults plus inline accessor bodies
csharp/google 2 spaces, 100 columns, K&R braces
csharp/csharpier-compat CSharpier 1.x layout
csharp/stylecop StyleCop.Analyzers layout (blank lines, ) placement, empty bodies) and its matching rules
json/prettier-compat, yaml/prettier-compat Prettier-like (width 80)
toml/taplo-compat taplo's defaults
xml/csharpier-compat CSharpier 1.x's XML defaults

Without extends every language uses Sudsy's defaults (C#: Microsoft's layout) and existing .editorconfig keys apply; presets exist only where they set something. Details: docs/formatting/presets.md.

Configuration

extends: [preset:csharp/google, preset:json/prettier-compat]
exclude: ["**/Generated/**"]
analysis: standard            # fast | standard | deep
csharp:
  format: { line_width: 120 }
  lint:
    rules:
      no-empty-catch: error
overrides:
  - files: ["tests/**"]
    csharp: { lint: { rules: { async-suffix: "off" } } }

sudsy config print shows the resolved config and where each value came from. A JSON Schema is in schemas/sudsy.schema.json. Reference: docs/config/sudsy-yaml.md, .editorconfig mapping.

Editor setup

The VS Code extension runs sudsy lsp and gives diagnostics, quick fixes, fix all and formatting. Format on save is your choice, per language:

{
  "[csharp]": { "editor.defaultFormatter": "Coox.sudsy", "editor.formatOnSave": true },
  "[json]": { "editor.defaultFormatter": "Coox.sudsy", "editor.formatOnSave": true },
  "[yaml]": { "editor.defaultFormatter": "Coox.sudsy", "editor.formatOnSave": true },
  "editor.codeActionsOnSave": { "source.fixAll.sudsy": "explicit" }
}

Any editor with an LSP client can start sudsy lsp (stdio). See docs/editor/vscode.md and docs/editor/lsp.md.

Documentation

docs/README.md indexes everything: architecture, per-language formatting options, the rule engine and built-in rules, pattern rules, plugins, performance, CI and release. The rule reference is also built as a searchable site (docs/development/site.md). Planned and deliberately skipped work: docs/roadmap.md. Changes: CHANGELOG.md.

License and contributing

MIT, copyright Maia Coox (LICENSE); test and benchmark inputs from other projects are listed in THIRD-PARTY-NOTICES.md. Contributions need a DCO sign-off; see CONTRIBUTING.md.

Metadata

Release files for sudsy 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for sudsy 0.0.2
File Actions
sudsy-0.0.2-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for sudsy-0.0.2-py3-none-win_arm64.whl
sudsy-0.0.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for sudsy-0.0.2-py3-none-win_amd64.whl
sudsy-0.0.2-py3-none-manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.39+ x86-64 Details for sudsy-0.0.2-py3-none-manylinux_2_39_x86_64.whl
sudsy-0.0.2-py3-none-manylinux_2_39_aarch64.whl Python 3 none Linux glibc 2.39+ ARM64 Details for sudsy-0.0.2-py3-none-manylinux_2_39_aarch64.whl
sudsy-0.0.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for sudsy-0.0.2-py3-none-macosx_11_0_arm64.whl
sudsy-0.0.2-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for sudsy-0.0.2-py3-none-macosx_10_12_x86_64.whl

Total release size: 114.1 MB

Release files / sudsy-0.0.2-py3-none-win_arm64.whl

Download URL sudsy-0.0.2-py3-none-win_arm64.whl
Size 16.7 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
911e830db9be0f05587279cb8f879f10eb76615a8b51a15ce9371b9dc971e9f1
BLAKE2b-256 checksum
How to use checksums
6874c9edef084fd13114612532b37a142848a3227bf6621290a1a0c86bd37ca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / sudsy-0.0.2-py3-none-win_amd64.whl

Download URL sudsy-0.0.2-py3-none-win_amd64.whl
Size 18.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d474aae5b4507b266020d7793e4860f3829111fdd98a5106fec05b7ab90a97b0
BLAKE2b-256 checksum
How to use checksums
b8164a950d4fbd2c9d198a2a82f4125797847bd9befd3f98466c4b4150fa9a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / sudsy-0.0.2-py3-none-manylinux_2_39_x86_64.whl

Download URL sudsy-0.0.2-py3-none-manylinux_2_39_x86_64.whl
Size 20.5 MB
Tags Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b2f73b1c072e81531934c3156656e2c6647bd5b1835d53e7c4b334aa19564e2d
BLAKE2b-256 checksum
How to use checksums
a30726c048c5746cc55ea061b35bc899e45ec0766c0051dc82b9eaf3c4c8ee84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / sudsy-0.0.2-py3-none-manylinux_2_39_aarch64.whl

Download URL sudsy-0.0.2-py3-none-manylinux_2_39_aarch64.whl
Size 20.2 MB
Tags Linux glibc 2.39+ ARM64 Python 3
SHA-256 checksum
How to use checksums
46ab048aedb2a9594f15b5004e6583160a59909e48203f53e12d541118c9194d
BLAKE2b-256 checksum
How to use checksums
49a5bf115eb7392635501fb34d8f6987e538bde97aec9a6ab8be53fecad5eace
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / sudsy-0.0.2-py3-none-macosx_11_0_arm64.whl

Download URL sudsy-0.0.2-py3-none-macosx_11_0_arm64.whl
Size 18.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ae1f71e96b30b5cc9f06d25b4bd30215e50febab1c29a1aa4eeedc7dde4b5781
BLAKE2b-256 checksum
How to use checksums
d2e00d2257674eabe66efb5392d359977af9a2efa9a1532f9ad37bfd55f5e769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / sudsy-0.0.2-py3-none-macosx_10_12_x86_64.whl

Download URL sudsy-0.0.2-py3-none-macosx_10_12_x86_64.whl
Size 19.8 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
de5dbf80e3ac5739a6fcc5b0b2fb77e33f36036d386ba5ae838ef891c2690b7d
BLAKE2b-256 checksum
How to use checksums
4c2907d00cdc02fa5773d620205f3e2e2c356a2f340b30109c0f9446c768d690
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for sudsy 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for sudsy-0.0.2-py3-none-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page