{"id":16157064,"url":"https://github.com/abhith/.editorconfig","last_synced_at":"2026-05-17T15:31:58.775Z","repository":{"id":42562296,"uuid":"510850838","full_name":"abhith/.editorconfig","owner":"abhith","description":"A combination of,  RehanSaeed/EditorConfig \u0026 dotnet/runtime","archived":false,"fork":false,"pushed_at":"2022-09-21T06:26:20.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T06:47:18.598Z","etag":null,"topics":["csharp","dotnet","editorconfig","editorconfig-settings","visual-studio"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-05T18:24:03.000Z","updated_at":"2022-07-05T18:50:01.000Z","dependencies_parsed_at":"2023-01-18T13:54:56.359Z","dependency_job_id":null,"html_url":"https://github.com/abhith/.editorconfig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhith%2F.editorconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhith%2F.editorconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhith%2F.editorconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhith%2F.editorconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhith","download_url":"https://codeload.github.com/abhith/.editorconfig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247575143,"owners_count":20960726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","editorconfig","editorconfig-settings","visual-studio"],"created_at":"2024-10-10T01:47:57.260Z","updated_at":"2025-10-13T04:18:54.772Z","avatar_url":"https://github.com/abhith.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# .editorconfig\n\nA combination of,\n- [RehanSaeed/EditorConfig][2]\n- [editorconfig - dotnet/runtime][1]\n\nThe main differences compared to [RehanSaeed/EditorConfig][2] is in the following,\n\n\u003e Adapted from [dotnet/runtime][1]\n\n1. We use `_camelCase` for internal and private fields and use `readonly` where possible. Prefix internal and private instance fields with `_`, static fields with `s_` and thread static fields with `t_`. When used on static fields, `readonly` should come after `static` (e.g. `static readonly` not `readonly static`).  Public fields should be used sparingly and should use PascalCasing with no prefix when used.\n2. We avoid `this.` unless absolutely necessary.\n3. Namespace imports should be specified at the top of the file, *outside* of\n   `namespace` declarations, and should be sorted alphabetically, with the exception of `System.*` namespaces, which are to be placed on top of all others.\n4. Prefers the use of conditional expression for assignment and return.\n5. We only use `var` when the type is explicitly named on the right-hand side, typically due to either `new` or an explicit cast, e.g. `var stream = new FileStream(...)` not `var stream = OpenStandardInput()`.\n    - Similarly, target-typed `new()` can only be used when the type is explicitly named on the left-hand side, in a variable definition statement or a field definition statement. e.g. `FileStream stream = new(...);`, but not `stream = new(...);` (where the type was specified on a previous line).\n6. `csharp_indent_labels` set to `one_less_than_current` : [See options](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#csharp_indent_labels)\n7. `csharp_indent_case_contents_when_block` set to `true` : [See options](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#csharp_indent_case_contents_when_block)\n8. `csharp_space_around_declaration_statements` set to `do_not_ignore` (❔as per [this](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options#csharp_space_around_declaration_statements), the options are `ignore`, `false` but most dotnet repos set to `do_not_ignore`).\n9. We use PascalCasing to name all our constant local variables and fields.\n\n## Additional Resources\n- [C# Coding Style - dotnet/runtime](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md)\n\n[1]: https://github.com/dotnet/runtime/blob/main/.editorconfig\n[2]: https://github.com/RehanSaeed/EditorConfig\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhith%2F.editorconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhith%2F.editorconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhith%2F.editorconfig/lists"}