From e9cd466a9c74f6bea1295532c67a94b01b1a3edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Wed, 25 Jan 2023 16:20:57 +0100 Subject: [PATCH] feat: initial commit --- .gitignore | 6 ++ Directory.Build.props | 22 +++++ LICENSE | 21 +++++ NosSmooth.Comms.sln | 8 ++ stylecop.json | 61 +++++++++++++ stylecop.ruleset | 202 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 320 insertions(+) create mode 100644 .gitignore create mode 100644 Directory.Build.props create mode 100644 LICENSE create mode 100644 NosSmooth.Comms.sln create mode 100644 stylecop.json create mode 100644 stylecop.ruleset diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb6dcce --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.idea/ +bin/ +obj/ +/packages/ +riderModule.iml +/_ReSharper.Caches/ diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..089e6a4 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,22 @@ + + + $(MSBuildThisFileDirectory)stylecop.ruleset + $(MSBuildThisFileDirectory)stylecop.json + + enable + nullable + + true + + $(StyleCopRuleset) + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f06ce02 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 František Boháček + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/NosSmooth.Comms.sln b/NosSmooth.Comms.sln new file mode 100644 index 0000000..85a1ac2 --- /dev/null +++ b/NosSmooth.Comms.sln @@ -0,0 +1,8 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/stylecop.json b/stylecop.json new file mode 100644 index 0000000..bb1a26c --- /dev/null +++ b/stylecop.json @@ -0,0 +1,61 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "indentation": { + "indentationSize": 4, + "tabSize": 4, + "useTabs": false + }, + "spacingRules": { + }, + "readabilityRules": { + }, + "orderingRules": { + "elementOrder": [ + "kind", + "constant", + "accessibility", + "static", + "readonly" + ], + "systemUsingDirectivesFirst": true, + "usingDirectivesPlacement": "outsideNamespace", + "blankLinesBetweenUsingGroups": "allow" + }, + "namingRules": { + "allowCommonHungarianPrefixes": true, + "allowedHungarianPrefixes": [ + "gl", + "f", + "db" + ] + }, + "maintainabilityRules": { + "topLevelTypes": [ + "class", + "interface", + "struct", + "enum" + ] + }, + "layoutRules": { + "allowConsecutiveUsings": false + }, + "documentationRules": { + "companyName": "František Boháček", + "copyrightText": "\n {fileName}\n\n Copyright (c) {companyName}. All rights reserved.\n Licensed under the {licenseName} license. See {licenseFile} file in the project root for full license information.", + "variables": { + "licenseName": "MIT", + "licenseFile": "LICENSE" + }, + "xmlHeader": false, + "documentInterfaces": true, + "documentExposedElements": true, + "documentInternalElements": true, + "documentPrivateElements": false, + "documentPrivateFields": false, + "documentationCulture": "en-US", + "fileNamingConvention": "stylecop" + } + } +} diff --git a/stylecop.ruleset b/stylecop.ruleset new file mode 100644 index 0000000..aa01e0a --- /dev/null +++ b/stylecop.ruleset @@ -0,0 +1,202 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.48.1