From 287f714d93292f890b919cb0fb969ca04bed38f8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 9 Feb 2021 08:46:25 -0600 Subject: add stylecop and analysis ruleset --- src/slskd/Properties/analysis.ruleset | 47 +++++++++++++++++++++++++++ src/slskd/Properties/launchSettings.json | 8 ----- src/slskd/Properties/stylecop.json | 27 +++++++++++++++ src/slskd/slskd.csproj | 56 ++++++++++++++++++-------------- 4 files changed, 105 insertions(+), 33 deletions(-) create mode 100644 src/slskd/Properties/analysis.ruleset create mode 100644 src/slskd/Properties/stylecop.json (limited to 'src') diff --git a/src/slskd/Properties/analysis.ruleset b/src/slskd/Properties/analysis.ruleset new file mode 100644 index 00000000..e1522031 --- /dev/null +++ b/src/slskd/Properties/analysis.ruleset @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/slskd/Properties/launchSettings.json b/src/slskd/Properties/launchSettings.json index f5409d71..b151b2f4 100644 --- a/src/slskd/Properties/launchSettings.json +++ b/src/slskd/Properties/launchSettings.json @@ -1,12 +1,4 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:57117/", - "sslPort": 44332 - } - }, "profiles": { "slskd": { "commandName": "Project", diff --git a/src/slskd/Properties/stylecop.json b/src/slskd/Properties/stylecop.json new file mode 100644 index 00000000..7d848f1a --- /dev/null +++ b/src/slskd/Properties/stylecop.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "orderingRules": { + "systemUsingDirectivesFirst": true, + "usingDirectivesPlacement": "insideNamespace" + }, + "maintainabilityRules": { + "topLevelTypes": [ + "class", + "delegate", + "enum", + "interface" + ] + }, + "documentationRules": { + "documentPrivateElements": false, + "documentPrivateFields": false, + "companyName": "slskd Team", + "copyrightText": " Copyright (c) {companyName}. All rights reserved.\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as published\n by the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/.", + "variables": { + "licenseName": "AGPLv3", + "licenseFile": "LICENSE" + } + } + } +} \ No newline at end of file diff --git a/src/slskd/slskd.csproj b/src/slskd/slskd.csproj index c177f6f7..30f891a0 100644 --- a/src/slskd/slskd.csproj +++ b/src/slskd/slskd.csproj @@ -1,18 +1,18 @@  - - net5.0 - 9.0 - - - - false https://github.com/slskd/slskd https://slskd.org slskd Team Copyright (c) slskd Team - LICENSE + + + + net5.0 + 9.0 + Properties\analysis.ruleset true + false + LICENSE @@ -23,14 +23,27 @@ + Always + + PreserveNewest + + + True + + Always + - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + @@ -44,24 +57,17 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + - - - - PreserveNewest - - - - - - True - - Always - - - -- cgit v1.2.3