csharpier rules in Sudsy
C#XMLversion 1.3.0 (NuGet latest; also the version pinned by the repo's dotnet-tools.json and used for the differential test)85% of C# files identical100% of XML files identical11 covered5 partial0 planned0 deferred
Every rule and setting of csharpier in the parity catalog, with the Sudsy equivalent. The format share is the part of real-world files that Sudsy formats to the same text as csharpier. Where the tool has a page for an entry, the id links to it.
Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).
| Id | Sudsy | Status | Note |
|---|---|---|---|
printWidth |
option csharp.format.line_width |
covered | |
useTabs |
option csharp.format.indent_style |
covered | |
indentSize |
option csharp.format.indent_size |
covered | |
endOfLine |
option csharp.format.end_of_line |
covered | |
xmlWhitespaceSensitivity |
formatter | partial | no ignore mode (CSharpier’s default for xaml and axaml); CSharpier also wraps text in ignore mode |
overrides |
configuration: overrides | partial | overrides applies options per glob; there is no formatter key to treat other extensions (.csr, .cst) as C#; a .csx with #r or #load fails to parse (the worker parses scripts as ordinary files) |
preprocessorSymbolSets |
option csharp.format.derive_symbol_sets |
covered | |
fixed: charset = utf-8 |
formatter | partial | Sudsy keeps an existing BOM and never transcodes; non-UTF-8 files are not handled (unverified) |
fixed: insert_final_newline = true |
option csharp.format.final_newline |
covered | |
fixed: trim_trailing_whitespace = true |
formatter | covered | |
fixed: dotnet_sort_system_directives_first = true |
option csharp.format.sort_usings |
covered | |
fixed: dotnet_separate_import_directive_groups = false |
option csharp.format.sort_usings |
partial | Without sort_usings blank lines between usings are preserved (max one) |
.csharpierignore, --config-path, --ignore-path, --no-cache etc. |
configuration: exclude, ignore files | covered | |
behavior: width is a soft limit |
formatter | covered | |
behavior: differential result |
configuration: preset csharp/csharpier-compat | partial | 5222 of 7614 compared files (68.6%) identical, 45 of 7659 left alone by CSharpier (aspnetcore 2316/3122, roslyn 1775/2858, runtime 1131/1679), differential test with derive_symbol_sets on |
behavior: no config for layout choices |
configuration: preset csharp/csharpier-compat (24 named options) | covered |