From 09668de51c902b345d45ab7fda4f93fab8a3b70f Mon Sep 17 00:00:00 2001 From: Alexandros Kritikos Date: Wed, 5 Nov 2025 16:05:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Basic=20styling=20guide=20for=20?= =?UTF-8?q?stylecop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stylecop.json | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 stylecop.json diff --git a/stylecop.json b/stylecop.json new file mode 100644 index 0000000..6f8a860 --- /dev/null +++ b/stylecop.json @@ -0,0 +1,47 @@ +{ + "$schema": "https://raw.githubusercontent.com/bjornhellander/NewStyleCopAnalyzers/refs/heads/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "indentation": { + "useTabs": false, + "indentationSize": 2 + }, + "orderingRules": { + "usingDirectivesPlacement": "outsideNamespace", + "systemUsingDirectivesFirst": true, + "blankLinesBetweenUsingGroups": "require", + "elementOrder": [ + "kind", + "accessibility", + "constant", + "static", + "readonly" + ] + }, + "maintainabilityRules": { + "topLevelTypes": [ + "class", + "interface", + "struct", + "enum" + ] + }, + "namingRules": { + "allowCommonHungarianPrefixes": false, + "includeInferredTupleElementNames": true, + "tupleElementNameCasing": "PascalCase" + }, + "layoutRules": { + "newlineAtEndOfFile": "require", + "allowConsecutiveUsings": false, + "allowDoWhileOnClosingBrace": true + }, + "readabilityRules": { + "allowBuiltInTypeAliases": false + }, + "documentationRules": { + "documentExposedElements": true, + "documentationCulture": "en-US", + "documentInterfaces": true + } + } +}