GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cluckwork/.editorconfig at main · mforce/cluckwork Expand file tree/ Copy path.editorconfigMore file actions 81 lines (71 loc) · 3.57 KB / Copy path.editorconfigFile metadata and controls81 lines (71 loc) · 3.57 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 # Editor defaults, honoured natively by most editors and IDEs with no toolchain, # no dependency and no CI job. Its job is to stop whitespace-only diffs from # burying real changes in review. # # THREE C# rules below are gated at build time, all under [*.{cs,csx}]: # file-scoped namespaces, using-directive placement and unused usings. # EnforceCodeStyleInBuild in Directory.Build.props runs the IDE analyzers during # the build, and TreatWarningsAsErrors is already true there, so a `:warning` # severity here is a BUILD ERROR. That applies to any rule written at `:warning` # in this file, not only these three. Everything else here is a convenience — do not cite an # unenforced entry as the reason a formatter is unnecessary. root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = space indent_size = 2 # Markdown: two trailing spaces are a hard line break, so trimming them changes # the rendered output. [*.md] trim_trailing_whitespace = false # .NET [*.{cs,csx}] indent_size = 4 # Gated. Outside is the C# default, so a file from any template complies. Note # that BOTH placements can shadow: a `using X;` inside a namespace resolves # relative to that namespace and can bind to a sibling X, while one outside can # be shadowed by a sibling namespace segment of the same simple name. The # second is what renaming the FlockScope test namespace fixed. Fix a violation # with `dotnet format style <project> --diagnostics IDE0065 IDE0161 # --severity warn --include <file>`. csharp_using_directive_placement = outside_namespace:warning csharp_style_namespace_declarations = file_scoped:warning # Gated (#1187). Reports only because Directory.Build.props sets # GenerateDocumentationFile. Fix with `dotnet format style <project> # --diagnostics IDE0005 --severity warn`. dotnet_diagnostic.IDE0005.severity = warning # #514: SeamSurfaceTests.cs and TableOwnerTests.cs each declare several # namespaces in one file, one per fixture scenario. Their inside-namespace # usings are load-bearing: 25 of them are RELATIVE aliases that resolve against # the enclosing namespace (`using Fixtures = TableOwnerFixtures;`), so hoisting # them would require fully qualifying every one. Only the placement rule is # relaxed. IDE0161 needs no exemption here — it never reports on a compilation # unit declaring more than one namespace. [tests/Cluckwork.Application.Tests/Architecture/{SeamSurfaceTests,TableOwnerTests}.cs] csharp_using_directive_placement = inside_namespace:silent # `dotnet ef migrations add` scaffolds a BLOCK-scoped namespace, so every future # migration would fail IDE0161 without this, and the 19 existing ones do too. # That, not #407's freeze, is why the exemption is here: it has to keep working # for migrations nobody has written yet. Generated Designer and snapshot files # carry <auto-generated /> and the analyzers skip them regardless. Migrations # already place usings outside, so the placement rule needs no exemption. [src/Cluckwork.Infrastructure/Persistence/Migrations/**] csharp_style_namespace_declarations = block_scoped:silent # The scaffold also writes `using System;`, which ImplicitUsings makes unused. dotnet_diagnostic.IDE0005.severity = none [*.{csproj,props,targets,sln,slnx}] indent_size = 2 # Generated — do not reformat. Schema docs are byte-compared by CI (#417) and a # lock file is written by the tool that owns it. [docs/schema/**] insert_final_newline = unset trim_trailing_whitespace = unset [**/packages.lock.json] insert_final_newline = unset [**/package-lock.json] insert_final_newline = unset [Makefile] indent_style = tab |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |